I need to execute some tests with maven, and pass a parameter from the command line.
My java code should get the parameter as: System.getenv(\"my_parameter1\");
The maven surefire plugin also has an option to set environment variables, just add this to your plugin configuration.
value
I think this requires that the plugin operates in fork mode, which is the default.