Java maven-无法执行货物:启动
我正在尝试在servlet项目中配置Java maven-无法执行货物:启动,java,maven,servlets,deployment,cargo,Java,Maven,Servlets,Deployment,Cargo,我正在尝试在servlet项目中配置cargo自动部署,我在pom.xml文件中有这些: <dependency> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-core-api-module</artifactId> <version>1.4.3</version> </dependenc
cargo
自动部署,我在pom.xml
文件中有这些:
<dependency>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-core-api-module</artifactId>
<version>1.4.3</version>
</dependency>
<!--
<dependency>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-core-container-tomcat</artifactId>
<version>1.4.2-SNAPSHOT</version>
</dependency>
-->
<dependency>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>1.4.2</version>
</dependency>
<build>
<plugins>
<!-- cargo plugin -->
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<configuration>
<container>
<containerId>tomcat6x</containerId>
<type>remote</type>
<systemProperties>
<cargo.jvmargs>-XX:MaxPermSize=256M -Xmx1024m</cargo.jvmargs>
</systemProperties>
</container>
<configuration>
<type>runtime</type>
<properties>
<cargo.hostname>${remote.hostname}</cargo.hostname>
<cargo.protocol>${remote.protocol}</cargo.protocol>
<cargo.servlet.port>9000</cargo.servlet.port>
<cargo.tomcat.manager.url>http://localhost:9000/manager</cargo.tomcat.manager.url>
<cargo.remote.username>user</cargo.remote.username>
<cargo.remote.password>pass</cargo.remote.password>
</properties>
</configuration>
<deployer>
<type>remote</type>
<deployables>
<deployable>
<groupId>${groupId}</groupId>
<artifactId>${artifactId}</artifactId>
<type>war</type>
<properties>
<context>latest</context>
</properties>
</deployable>
</deployables>
</deployer>
</configuration>
</plugin>
<!-- End cargo plugin -->
</plugins>
<build>>
有什么想法吗?tnx.根据“deployer”元素不能包含“deployables”子元素。为了使事情顺利进行,您应该将“可部署”放在“配置”元素下
[...]
独立的
[...]
my.war.groupId
我的战争
战争
根据“deployer”元素不能包含“deployables”子元素。为了使事情顺利进行,您应该将“可部署”放在“配置”元素下
[...]
独立的
[...]
my.war.groupId
我的战争
战争
我注意到你在写
${groupId}和${artifactId}将如何解决?!!
请尝试使用war应用程序的静态groupId和artifactId
<deployer>
<type>remote</type>
<deployables>
<deployable>
<groupId>${groupId}</groupId>
<artifactId>${artifactId}</artifactId>
<type>war</type>
<properties>
<context>latest</context>
</properties>
</deployable>
</deployables>
</deployer>
遥远的
${groupId}
${artifactId}
战争
最近的
我注意到你在写
${groupId}和${artifactId}将如何解决?!!
请尝试使用war应用程序的静态groupId和artifactId
<deployer>
<type>remote</type>
<deployables>
<deployable>
<groupId>${groupId}</groupId>
<artifactId>${artifactId}</artifactId>
<type>war</type>
<properties>
<context>latest</context>
</properties>
</deployable>
</deployables>
</deployer>
遥远的
${groupId}
${artifactId}
战争
最近的
请在此处发布您的cargo插件配置/执行,看起来您在其中拼错了一个参数configuration@Jk1我更新了pom.xml
文件请在这里发布您的cargo插件配置/执行,看起来您在其中拼写了一个参数configuration@Jk1我更新了pom.xml
文件
<deployer>
<type>remote</type>
<deployables>
<deployable>
<groupId>${groupId}</groupId>
<artifactId>${artifactId}</artifactId>
<type>war</type>
<properties>
<context>latest</context>
</properties>
</deployable>
</deployables>
</deployer>