[ 
http://jira.codehaus.org/browse/SUREFIRE-503?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=139300#action_139300
 ] 

Paul Grove commented on SUREFIRE-503:
-------------------------------------

The includes and excludes do have to stars ** the editor sripped them out and 
made the text bold must be some sort of wiki markup processing!!  

> Parent pom settings not overridden
> ----------------------------------
>
>                 Key: SUREFIRE-503
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-503
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: plugin
>    Affects Versions: 2.4.2
>         Environment: Windows XP SP2, Maven 2.0.9
>            Reporter: Paul Grove
>
> In my team parent pom from which all projects inherit I have this in the pom
> <build>
>               <plugins>
>                       <plugin>
>                               <groupId>org.apache.maven.plugins</groupId>
>                               <artifactId>maven-surefire-plugin</artifactId>
>                               <configuration>
>                                       <excludes>
>                                               
> <exclude>**/*ITest.java</exclude>
>                                       </excludes>
>                               </configuration>
>                       </plugin>
>                       <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>
> In my project pom I was to add some more exclusions and inclusions so I added 
> this
> <build>
>               <plugins>
>                       <plugin>
>                               <groupId>org.apache.maven.plugins</groupId>
>                               <artifactId>maven-surefire-plugin</artifactId>
>                               <configuration>
>                                       <excludes>
>                                               
> <exclude>**/functest/**</exclude>
>                                               
> <exclude>**/perftest/**</exclude>
>                                       </excludes>
>                               </configuration>
>                       </plugin>
>                       <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>**/functest/**</include>
>                                                               
> <include>**/perftest/**</include>
>                                                       </includes>
>                                               </configuration>
>                                       </execution>
>                               </executions>
>                       </plugin>
>               </plugins>
>       </build>
> But when I run mvn test all the tests in functest and perftest package still 
> run. but if I add the exclusions and inclusions to the team parent pom it 
> works as expected so I am a bit confused.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to