[ https://issues.apache.org/jira/browse/SUREFIRE-1160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tibor Digana updated SUREFIRE-1160: ----------------------------------- Description: Currently test/it.test property overrides includes and excludes parameters with default execution phase id. {code} <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.18.1</version> <configuration> <includes> <include>**/*Test.java</include> </includes> </configuration> <executions> <execution> <id>another-test</id> <goals> <goal>test</goal> </goals> </execution> </executions> </plugin> {code} The command mvn verify -Dit.test=ExampleTest#testFailsafe should override the includes/excludes parameter whatever execution is specified. was: Currently test/it.test property overrides includes and excludes parameters with default execution phase id: {code} <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.18.1</version> <configuration> <includes> <include>**/*Test.java</include> </includes> </configuration> <executions> <execution> <id>another-test</id> <goals> <goal>test</goal> </goals> </execution> </executions> </plugin> {code} The command mvn verify -Dit.test=ExampleTest#testFailsafe should override the includes/excludes parameter whatever execution is specified. > -DTest=... should be independent of execustion section > ------------------------------------------------------ > > Key: SUREFIRE-1160 > URL: https://issues.apache.org/jira/browse/SUREFIRE-1160 > Project: Maven Surefire > Issue Type: Bug > Components: Maven Failsafe Plugin, Maven Surefire Plugin > Affects Versions: 2.18.1 > Reporter: Tibor Digana > Assignee: Tibor Digana > Fix For: 2.19 > > > Currently test/it.test property overrides includes and excludes parameters > with default execution phase id. > {code} > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-surefire-plugin</artifactId> > <version>2.18.1</version> > <configuration> > <includes> > <include>**/*Test.java</include> > </includes> > </configuration> > <executions> > <execution> > <id>another-test</id> > <goals> > <goal>test</goal> > </goals> > </execution> > </executions> > </plugin> > {code} > The command mvn verify -Dit.test=ExampleTest#testFailsafe should override the > includes/excludes parameter whatever execution is specified. -- This message was sent by Atlassian JIRA (v6.3.4#6332)