You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Michael Mekaail <mi...@atlassian.com> on 2006/08/09 04:49:05 UTC
Cargo-plugin 0.3-SNAPSHOT problem?
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Cargo-plugin 0.3-SNAPSHOT problem?
Posted by Vincent Massol <vi...@massol.net>.
Hi Michael,
Please post to the cargo lists. When you post there please be sure to post
your effective pom (mvn help:effective-pom). Also you shouldn't have both
start and deploy goals as start does static deployment. Check the online
docs. Let's continue this discussion on the cargo list.
Thanks
-Vincent
> -----Original Message-----
> From: Michael Mekaail [mailto:michael@atlassian.com]
> Sent: mercredi 9 août 2006 04:49
> To: users@maven.apache.org
> Subject: Cargo-plugin 0.3-SNAPSHOT problem?
>
> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
___________________________________________________________________________
Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet !
Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences.
http://fr.answers.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org