Home > Uncategorized > My maven notes

My maven notes

Maven and Junit notes

Often used maven command
mvn clean package -Dmaven.test.skip=true
mvn clean package -Dmaven.test.skip=true -Dmaven.test.failure.ignore=true -Dmaven.test.haltafterfailure=no
mvn dependency:tree -Dverbose -Dincludes=commons-collections
mvn assembly:single
mvn -Dmaven.surefire.debug test –default remote debug port 5005
mvn -Dmaven.surefire.debug=”-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000 -Xnoagent -Djava.compiler=NONE” test

mvnDebug is handy.

set MAVEN_DEBUG_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000
mvnDebug test

Java Debug
-Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=4000,suspend=n

JUnit parallel

Cocurrent JUnit test runner for Parameters

Learn maven using debugging – http://netsuke.wordpress.com/2008/03/09/see-how-maven-works-inside-remote-debugging-plugins/


MAVEN_OPTS=”-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000″;

Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: