I'm having a problem binding our integration tests to the
integration-test lifecycle goal.
Can anyone explain why this would happen twice?
Here's my pom:
<?xml version="1.0" encoding="ISO-8859-1"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>lty</groupId>
<artifactId>app</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<artifactId>rewardEngine</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<description>Module to calculate rewards</description>
<name>Reward Engine</name>
<url>http://www.upromise.com</url>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<reportsDirectory>../reportsdirectory</reportsDirectory>
<systemProperties>
<property>
<name>common.properties</name>
<value>${work.dir}/common.properties</value>
</property>
<property>
<name>java.util.logging.config.file</name>
<value>
${work.dir}/utils/src/main/conf/logging.properties</value>
</property>
<property>
<name>rewardEngineITest.testData.file</name>
<value>
${work.dir}/rewardEngine/src/test/resources/xml/RewardEngineITestData.xm
l</value>
</property>
<property>
<name>rewardEngine.config.file</name>
<value>
${work.dir}/rewardEngine/src/main/resources/xml/EngineConfiguration.xml<
/value>
</property>
</systemProperties>
<includes>
<include>**/*UTest.java</include>
</includes>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>lty</groupId>
<artifactId>lty-model</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>lty</groupId>
<artifactId>lty-utils</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
<profiles>
<profile>
<id>itest-blah</id>
<activation>
<property>
<name>rewardEngine.iTest</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<executions>
<execution>
<id>surefire-iTest</id>
<phase>integration-test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<forkMode>pertest</forkMode>
<includes>
<include>**/*ITest.java</include>
</includes>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>