You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Manos Batsis <ma...@geekologue.com> on 2007/07/02 11:54:48 UTC

Surefire fired before local deployment completes

Hello,

I'm using Cargo during the pre-integration-test phase to deploy an EAR 
in a local running JBoss, then surefire during the integration-test 
phase to run some JUnit/HTTPUnit tests. However, deployment takes some 
seconds and the tests randomly fail with 404 errors during deployment. 
How can i make either cargo or surefire wait a bit to make sure 
deployment is complete?

Thanks,

Manos


<plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-surefire-plugin</artifactId>
                 <executions>
                     <execution>
                         <phase>integration-test</phase>
                         <goals>
                             <goal>test</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>org.codehaus.cargo</groupId>
                 <artifactId>cargo-maven2-plugin</artifactId>
                 <configuration>
                     <container>
                         <containerId>jboss4x</containerId>
                         <home>${jboss.home}</home>
                     </container>
                     <wait>true</wait>
                     <configuration>
                         <type>existing</type>
                         <home>${jboss.home}/server/default</home>
                         <properties>
                             <cargo.logging>high</cargo.logging>
                             <cargo.wait>true</cargo.wait>
                         </properties>
                     </configuration>
                     <deployer>
                         <type>installed</type>
                         <deployables>
                             <deployable>
                                 <groupId>${project.groupId}</groupId>
                                 <artifactId>ear</artifactId>
                                 <type>ear</type>
                             </deployable>
                         </deployables>
                     </deployer>
                 </configuration>
                 <executions>
                     <execution>
                         <id>start-container</id>
                         <phase>pre-integration-test</phase>
                         <goals>
                             <!--goal>start</goal-->
                             <goal>deploy</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org