Hi Emmanuel

Thank you, but .. I have read that document and it doesn't answer my question.

I HAVE configured my pom as per that document and the behaviour is that 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>. the one that has been added to my build excludes the
classes but the default one doesn't.

Please explain how this works.

regards

Stephen

Quoting Emmanuel Venisse <[EMAIL PROTECTED]>:

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]






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

Reply via email to