Could you please advise me on whether or not I can dynamically change Include
and Exclude
for the Maven Surfire Plugin?
For example:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.18.1</version>
<configuration>
<includes>
<include>**/${param}Spec*.*</include>
</includes>
</configuration>
</plugin>
</plugins>
</build>
I would like to have $param
passed from the command line when we perform the Maven test command.
Please give advice if you have a solution. I have tried argline
and systemProperties
Thanks!