I have a set of tests that I only want to run in the integration-test
phase. These are all in in the .../integration/.. package
I have the following in my pom, but the plugin still insists on running
the integration tests in the test phase.
What is wrong with this configuration ?
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<executions>
<execution>
<id>surefire-test</id>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<excludes>
<exclude>**/integration/**</exclude>
</excludes>
</configuration>
</execution>
<execution>
<id>surefire-integrationtest</id>
<phase>integration-test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<includes>
<include>**/integration/**</include>
</includes>
</configuration>
</execution>
</executions>
</plugin>
Jan-Olav Eide
Senior Software Engineer
FAST
Christian Frederiks plass 6
N-0120 Oslo, Norway
Mobile: + 47 4801 1184
Fax: + 47 2301 1201
www.fastsearch.com