On Mon, Sep 10, 2012 at 8:52 AM, John Kramer <[email protected]> wrote:
> Quick question. Is there a way to pass arguments to the JVMs that > surefire starts from the maven command line. > Hi, John; any parameter that has a documented "expression" can be invoked on the command line instead, like this: mvn somegoalorphase -Dtheexpression=somevalue So in your case: mvn test -DargLine="whatever" ...because http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#argLineindicates that the argLine configuration parameter has a corresponding expression named (conveniently enough) argLine. Best, Laird -- http://about.me/lairdnelson
