Tomcat 6.0.33 で Maven-Cargo プラグイン 1.1.3 を使用して Maven 3.0.3 を使用しています。Maven-Cargo を使用して、既存の WAR プロジェクトをインストール済みの Tomcat コンテナーにデプロイするにはどうすればよいですか? 私はこの構成を持っています...
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<configuration>
<wait>false</wait>
<container>
<containerId>tomcat6x</containerId>
<type>installed</type>
<!-- The home folder for your local Tomcat -->
<home>${CATALINA_HOME}</home>
</container>
<configuration>
<type>existing</type>
<home>${CATALINA_HOME}</home>
</configuration>
<deployer>
<!-- You have to again specify that the type for the deployer -->
<type>local</type>
<deployables>
<!-- This deployable specifies the webapp you want to deploy -->
<deployable>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<type>${project.packaging}</type>
</deployable>
</deployables>
</deployer>
</configuration>
<executions>
<execution>
<id>start-container</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start</goal>
</goals>
</execution>
<execution>
<id>stop-container</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
</plugin>
しかし、私が走るとき
mvn cargo:start clean install -DCATALINA_HOME=$CATALINA_HOME
すでに実行中の Tomcat インスタンスに WAR ファイルがデプロイされません (Tomcat サーバーに対して統合テストを実行すると、404 が返されます)。
ご協力ありがとうございます - デイブ