Mark Lehky created SUREFIRE-1423:
------------------------------------
Summary: 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
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)