jump to navigation

Using integration tests with Maven May 29, 2008

Posted by maxmil in : Maven , add a comment

With the most recent version of maven (2.0.9) i have not been able to do my integration tests. I configure my integration tests using the surefire plugin defined as a build profile as follows.


<profile>
   <id>itest</id>
   <activation>
      <property>
         <name>itest</name>
      </property>
   </activation>
   <build>
      <plugins>
         <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <executions>
               <execution>
                  <id>surefire-it</id>
                  <phase>integration-test</phase>
                  <goals>
                     <goal>test</goal>
                  </goals>
                  <configuration>
                     <excludes>
                        <exclude>none</exclude>
                     </excludes>
                     <includes>
                        <include>**/*ITest.java</include>
                     </includes>
                  </configuration>
               </execution>
            </executions>
         </plugin>
      </plugins>
   </build>
</profile>

Unfortunately with the 2.0.9 version of maven when the integration test begins my test resources are not copied to the class path and hence my tests fail.

The solution that i have found has been to revert to the 2.0.8 version of maven where this problem does not exist.

Building J2EE projects with Maven July 12, 2006

Posted by maxmil in : Java,Maven , add a comment

Good article…

http://www.onjava.com/pub/a/onjava/2005/09/07/maven.html?page=1

Maven POM May 31, 2006

Posted by maxmil in : Java,Maven , add a comment

A usefull article….

http://www.javaworld.com/javaworld/jw-05-2006/jw-0529-maven.html