It seems to be something related to the 2.4.2 version of the surefire plugin.
If i use the 2.0.9 release but force the surefire plugin to use the 2.3
version of the surefire plugin then the test resources are copied correctly.

<plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <version>2.3</version>
            etc...





maxmil wrote:
> 
> I'm not a maven expert so maybe i'm doing something wrong but if not i may
> have found a bug.
> 
> I configure integration testing via 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>
> 
> With maven 2.0.8 this worked fine however with 2.0.9 my test resources do
> not included in the the integration-test and the tests fail.
> 
> Is there some error is the way that i am using the surefire plugin?
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Integration-testing-via-profile-fails-in-2.0.9-tp17531266p17532410.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to