Archive

Archive for December, 2012

Distributed Caching Notes

December 27, 2012 Leave a comment
Categories: Uncategorized

My maven notes

December 25, 2012 Leave a comment

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
http://java.dzone.com/articles/running-junit-tests-parallel

Cocurrent JUnit test runner for Parameters
http://stackoverflow.com/questions/10141648/concurrent-junit-tests-with-parameters

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

http://maven.apache.org/maven-1.x/plugins/test/properties.html

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

Categories: Uncategorized