【发布时间】:2018-08-04 09:03:07
【问题描述】:
我想用 Cargo 部署我的应用程序,但 Cargo 只是忽略了属性。我尝试将 -Dcargo.glassfish.removeDefaultDatasource=false 作为 cmd 选项提供,它可以工作,但是使用我的 pom.xml 中的属性它没有,知道吗?
pom.xml:(短路)
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>1.6.6</version>
<configuration>
<container>
<containerId>glassfish5x</containerId>
<type>installed</type>
<zipUrlInstaller>
<url>http://download.oracle.com/glassfish/5.0.1/nightly/latest-web.zip</url>
</zipUrlInstaller>
<systemProperties>
</systemProperties>
</container>
<properties><cargo.glassfish.removeDefaultDatasource>false</cargo.glassfish.removeDefaultDatasource>
</properties>
</configuration>
</plugin>
【问题讨论】:
-
JSF 完全不了解 maven 或 maven-cargo... 删除了 JSF 标签。标签是针对问题所在,而不是您使用什么
标签: maven glassfish maven-cargo