Maven FAQ
Work in Progress...Documentation, generate it
mvn site
Debug tests
mvn -Dmaven.surefire.debug test
Debug tests with jvm settings
mvn -Dmaven.surefire.debug="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -Xnoagent -Djava.compiler=NONE" test
Dependencies:
mvn dependency:resolve
mvn dependency:tree
Do Not Run Other Phases, just test only:
mvn -Dtest=NameOfTest surefire:test
Effective pom, how to show it:
mvn help:effective-pom
Multiple tests, Run only a limited set of tests:
mvn -Dtest=TestSquare,TestCi*le test
Repo: Search for things in the 'official' repo
https://repository.sonatype.org/#welcome
Single test, Run only a Single test
mvn -Dtest=TestCircle test
References:
http://maven.apache.org/surefire/maven-surefire-plugin/examples/debugging.html
http://maven.apache.org/surefire/maven-surefire-plugin/examples/single-test.html
http://stackoverflow.com/questions/14881730/run-junit-tests-in-maven-without-building-and-copying-files
No comments:
Post a Comment