我正在使用 Maven 3.0.3。有没有办法可以使用 Maven Cargo 插件来启动嵌入式 Tomcat 服务器?现在,看来我必须先自己安装它。当我尝试将容器类型更改为“嵌入式”时出现此错误...
[ERROR] Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.1.2:run (default-cli) on project jx: Execution default-cli of goal org.codehaus.cargo:cargo-maven2-plugin:1.1.2:run failed: Cannot create configuration. There's no registered configuration for the parameters (container [id = [tomcat6x], type = [embedded]], configuration type [standalone]). Actually there are no valid types registered for this configuration. Maybe you've made a mistake spelling it? -> [Help 1]
我使用的配置是...
<plugins>
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<configuration>
<container>
<containerId>tomcat6x</containerId>
<type>embedded</type>
</container>
<configuration>
<properties>
<cargo.servlet.port>8080</cargo.servlet.port>
<cargo.logging>high</cargo.logging>
</properties>
任何帮助表示赞赏。我不使用 Maven 嵌入式 Tomcat 插件的原因是它不支持多个部署工件。谢谢, - 戴夫