Skip to content

Instantly share code, notes, and snippets.

@lfo
Created July 19, 2013 09:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save lfo/6037944 to your computer and use it in GitHub Desktop.
Save lfo/6037944 to your computer and use it in GitHub Desktop.
Debug maven test externally in windows share mode
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
@573
Copy link

573 commented Apr 23, 2015

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.

@573
Copy link

573 commented Apr 27, 2015

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