[ 
https://issues.apache.org/jira/browse/SUREFIRE-1423?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tibor Digana closed SUREFIRE-1423.
----------------------------------
    Resolution: Not A Bug
      Assignee: Tibor Digana

I believe it is a problem for you but it is not a bug.
It is under control of Maven only.
It is in self POM, so as a hint, you should add one more profile activated by 
default and specify exclusions there.

> empty excludes list in profile does not override excludes
> ---------------------------------------------------------
>
>                 Key: SUREFIRE-1423
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1423
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Failsafe Plugin, Maven Surefire Plugin
>    Affects Versions: 2.20
>            Reporter: Mark Lehky
>            Assignee: Tibor Digana
>
> I have a set of tests that I want to run by themselves and only sometime. I 
> defined my failsafe plugin as follows:
> {noformat}
> <plugin>
>       <groupId>org.apache.maven.plugins</groupId>
>       <artifactId>maven-failsafe-plugin</artifactId>
>       <version>2.20</version>
>       <configuration>
>               <excludes>
>                       <exclude>**/tests/dataload/**</exclude>
>               </excludes>
>       </configuration>
>       <executions>
>               <execution>
>                       <goals>
>                               <goal>integration-test</goal>
>                               <goal>verify</goal>
>                       </goals>
>               </execution>
>       </executions>
> </plugin>
> {noformat}
> I then defined a profile as follows:
> {noformat}
> <profile>
>       <id>run.dataload.tests</id>
>       <build>
>               <plugins>
>                       <plugin>
>                               <artifactId>maven-failsafe-plugin</artifactId>
>                               <configuration>
>                                       <excludes />
>                                       <includes>
>                                               
> <include>**/tests/dataload/**</include>
>                                       </includes>
>                               </configuration>
>                       </plugin>
>               </plugins>
>       </build>
> </profile>
> {noformat}
> Please note the empty {{<excludes />}} tag in the profile. I was hoping this 
> would "remove" my excludes definition from the plugin definition. However, 
> when I run {{mvn -Prun.dataload.tests verify}} none of my tests are run.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to