Я использую Maven 3.0.3 с плагином Maven-Cargo 1.1.3 с Tomcat 6.0.33. Как развернуть существующий проект WAR в установленном контейнере Tomcat с помощью Maven-Cargo? У меня есть эта конфигурация ...
<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
файл WAR не был развернут на моем уже работающем экземпляре Tomcat (я получаю 404 с, когда мои интеграционные тесты запускаются на сервере Tomcat).
Спасибо за вашу помощь, - Дэйв