http://maven.apache.org/plugins/maven-surefire-plugin/howto.html

Emmanuel

[EMAIL PROTECTED] a écrit :
Hi

This is a general question which applies to all plugins which are part of the
default lifecycles, I am using the surefire plugin as an example:

I want to configure the surefire plugin that gets executed during the test
phase? (I want to exclude cetain tests). How do I do this.

If I add a plugin to my plugins section e.g. :

<plugin>
   <groupId>org.apache.maven.plugins</groupId>
   <artifactId>maven-surefire-plugin</artifactId>
   <executions>
      <execution>
      <phase>test</phase>
      <configuration>
         <excludes>
            <exclude>**/*ABCTest.java</exclude>
         </excludes>
      </configuration>
      <goals>
         <goal>test</goal>
      </goals>
     </execution>
   </executions>
</plugin>

it has no effect on the default test plugin.  All that happens is that the
surefire plugin gets executed twice.  Once for the default and once because I
have added the above to my <build>.

regards

Stephen






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






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

Reply via email to