【发布时间】:2015-04-10 13:00:00
【问题描述】:
我正在尝试使用 cargo 插件在 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>
当我尝试使用 mvn cargo:deploy 运行它时,它给了我以下错误
未能在项目 Audit_Management_DS 上执行目标 org.codehaus.cargo:cargo-maven2-plugin:1.4.8:deploy (default-cli):执行目标 org.codehaus.cargo:cargo-maven2-plugin 的默认 cli :1.4.8:部署失败:无法创建配置。参数(容器 [id = [tomcat8x]、类型 = [远程]]、配置类型 [运行时])没有注册配置。实际上没有为此配置注册的有效类型。也许你拼错了? -> [帮助 1]
【问题讨论】:
-
我在使用 cargo-maven2-plugin 1.4.16 时遇到了同样的问题。