[ https://jira.codehaus.org/browse/SUREFIRE-861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tibor Digana closed SUREFIRE-861. --------------------------------- Resolution: Not A Bug This has nothing to do with surefire. You should create a profile "activeByDefault" with particular exclusion section. Other profile as it is now. > Overriding excludes in profile does not achieve desired result > -------------------------------------------------------------- > > Key: SUREFIRE-861 > URL: https://jira.codehaus.org/browse/SUREFIRE-861 > Project: Maven Surefire > Issue Type: Improvement > Components: Maven Surefire Plugin > Affects Versions: 2.12 > Environment: Win 7 Java 6 u 30 64bit Mvn 3.0.4 > Reporter: Karsten Tinnefeld > Priority: Minor > > Overriding excludes in a profile does not work, the override is simply ignored. This configuration should prevent surefire from running certain tests except when the profile run-integration-tests is set: > > > > > > maven-surefire-plugin > 2.12 > > > **/*IntegrationTest.java > > > > > > > > > run-integration-tests > > > > > maven-surefire-plugin > > > > > > > > > > > As a work-around, this ugly syntax can be applied: > > > > run-integration-tests > > > > > maven-surefire-plugin > > > NONE > > > > > > > > > > However, I consider this a bug. -- This message was sent by Atlassian JIRA (v6.1.6#6162)