Hey,
I'm trying to get the Cargo plugin working with Maven 2. My first
problem was that the ping was timing out after 2000 (20 sec) which was
too short. But this problem is fixed by using Cargo version
0.3-SNAPSHOTand using the tag <pingTimeout>240000</pingTimeout>.
However my problem now is that when I do intregration-test I have the
goals in this order:
cargo:start
cargo:deploy
cargo:start Again??!?!
Here is the code that I have in my POM
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>0.3-SNAPSHOT</version>
<configuration>
<wait>false</wait>
<container>
<containerId>tomcat5x</containerId>
<zipUrlInstaller>
<url>http://www.apache.org/dist/jakarta/tomcat-5/v5.0.30/bin/jakarta-tomcat-5.0.30.zip</url>
<installDir>${installDir}</installDir>
</zipUrlInstaller>
<timeout>120000</timeout>
<output>output.log</output>
<log>cargo-log.log</log>
</container>
<configuration>
<home>${project.build.directory}/tomcat5x/container</home>
<properties>
<cargo.servlet.port>9087</cargo.servlet.port>
</properties>
</configuration>
</configuration>
<executions>
<execution>
<id>start-container</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start</goal>
<goal>deploy</goal>
</goals>
<configuration>
<deployer>
<deployables>
<deployable>
<groupId>com.company.project</groupId>
<artifactId>project</artifactId>
<type>war</type>
<location>../project/target/project-1.0.war</location>
<pingURL>http://localhost:9087/project-1.0</pingURL>
<pingTimeout>240000</pingTimeout>
</deployable>
</deployables>
</deployer>
</configuration>
</execution>
<execution>
<id>stop-container</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
</plugin>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]