Friday, April 30, 2010

Passing JVM arguments for junit with maven

Every time I need to do this, google leads me to this help page, which leads me to the following command, which does NOT work (at least not on my version of Maven):
mvn -Dmaven.junit.jvmargs=-verbose test
The proper help page is for the surefire plugin. So the proper way to do it is:
mvn -DargLine=-verbose test


Post a Comment