Created
July 19, 2013 09:35
-
-
Save lfo/6037944 to your computer and use it in GitHub Desktop.
Debug maven test externally in windows share mode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mvn clean install -Dmaven.surefire.debug=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_shmem,server=y,address=Maven,suspend=n | |
# In Netbeans Debug/attachDebugger with | |
# connector : SharedMemory | |
# Name : Maven | |
# Timeout : 10 000 |
Partial solution for debug-inside-netbeans, in Options >> Maven >> Global Execution Options I have this, a little annoying though might be to pass the right moment when attaching the debugger, in this example the failsafe:integration-test phase, check that at the command output:
-Dmaven.failsafe.debug='"'-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_shmem,server=y,address=Maven,suspend=n'"'
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cool. searched exactly for this while dt_socket method seems not to be supported on windows yet. If we could start the mvn build inside netbeans then everything would be on tops.