java/mvn
author Tomas Zeman <tzeman@volny.cz>
Sun, 25 Aug 2013 21:04:14 +0200
changeset 34 11d20ddca9d8
parent 12 999aca5857e1
permissions -rw-r--r--
scm/hg-git-rosetta-stone: simplified mapping between hg commands and git commands If you know how to use hg very well and just looking at how to do the same things in git, this page is right for you. Use it like a dictionary hg -> git.

Remote debug:
-------------

  * start mvn jetty:run w/ environment variable MAVEN_OPTS set to debug mode, ie.:

MAVEN_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=n" mvn jetty:run

  * In Netbeans, do Run → Attach debugger and set breakpoints in the code.


Passing system properties (System.getProperty()) to mvn test:
-------------------------------------------------------------

  * mvn test -DargLine="-DpropName=value"