[英]Cargo Cannot deploy to remote tomcat 8 with using cargo-maven-plugin
I am trying to deploy war on tomcat8 using cargo plugin my entry is as follows: 我试图使用货物插件在tomcat8上部署战争我的条目如下:
<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>
when i trying to run this using mvn cargo:deploy its giving me the following error 当我尝试使用mvn货物运行时:部署它给我以下错误
Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.4.8:deploy (default-cli) on project Audit_Management_DS: Execution default-cli of goal org.codehaus.cargo:cargo-maven2-plugin:1.4.8:deploy failed: Cannot create configuration. 无法执行目标org.codehaus.cargo:cargo-maven2-plugin:1.4.8:部署(default-cli)项目Audit_Management_DS:执行default-cli of goal org.codehaus.cargo:cargo-maven2-plugin:1.4。 8:部署失败:无法创建配置。 There's no registered configuration for the parameters (container [id = [tomcat8x], type = [remote]], configuration type[runtime]). 参数没有注册配置(容器[id = [tomcat8x],type = [remote]],配置类型[runtime])。 Actually there are no valid types registered for this configuration. 实际上,没有为此配置注册的有效类型。 Maybe you've made a mistake spelling it? 也许你拼错了? -> [Help 1] - > [帮助1]
更新到cargo-plugin版本1.4.13为我解决了此错误消息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.