I need to pass on following values …
exeEvironment (Test environment) , testGroup (Group in testNG)
from Command-Line ->
building on the accepted answer
if maven surefire and the
are declared in a maven profile, they are not available and will return null
unless the profile is also invoked.
Command Line argument
mvn clean test -PmyTestProfile -Denv.USER=UAT -Dgroups=Sniff
pom.xml
myTestProfile
false
org.apache.maven.plugins
maven-surefire-plugin
${surefire.version}
${env.USER}