How to pass java code a parameter from maven for testing
I need to pass on following values … exeEvironment (Test environment) , testGroup (Group in testNG) from Command-Line -> POM -> TestNG -> Test cases. Based on these two posts .... pass a java parameter from maven How to pass parameters to guicified TestNG test from Surefire Maven plugin? I did the following configuration .. In surefire plugin , I tried following two options, none seem to work. ===== (1) <execution> <id>default-test</id> <goals> <goal>test</goal> </goals> <configuration> <properties> <exeEnvironment>${exeEnvironment}</exeEnvironment> <testGroup>${testGroup}</testGroup> <