Cargo无法使用Cargo maven插件部署到远程tomcat 8
我正在尝试使用cargo插件在tomcat8上部署war我的条目如下:Cargo无法使用Cargo maven插件部署到远程tomcat 8,maven,tomcat,cargo,Maven,Tomcat,Cargo,我正在尝试使用cargo插件在tomcat8上部署war我的条目如下: <plugins> <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>1.4.8</version>
<plugins>
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>1.4.8</version>
<configuration>
<container>
<containerId>tomcat8x</containerId>
<type>remote</type>
</container>
<configuration>
<type>runtime</type>
<properties>
<cargo.remote.username>tomcat</cargo.remote.username>
<cargo.remote.password>s3cret</cargo.remote.password>
<cargo.tomcat.manager.url>http://localhost:1234/manager/text</cargo.tomcat.manager.url>
</properties>
</configuration>
<deployables>
<deployable>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<type>war</type>
<properties>
<context>/auditAPP</context>
</properties>
</deployable>
</deployables>
</configuration>
</plugin>
</plugins>
org.codehaus.cargo
cargo-maven2-plugin
1.4.8
tomcat8x
遥远的
运行时
雄猫
s3cret
http://localhost:1234/manager/text
${project.groupId}
${project.artifactId}
战争
/auditAPP
当我尝试使用mvn cargo:Deployits运行它时,会出现以下错误
未能在项目审核管理上执行goal org.codehaus.cargo:cargo-maven2-plugin:1.4.8:deploy(默认cli)goal org.codehaus.cargo:cargo-maven2-plugin:1.4.8:deploy失败:无法创建配置。没有参数的注册配置(容器[id=[tomcat8x],类型=[remote]],配置类型[runtime])。实际上,没有为此配置注册的有效类型。也许你拼错了?->[帮助1]
更新到cargo插件版本1.4.13为我解决了此错误消息。我在cargo-maven2-plugin 1.4.16上遇到了同样的问题。