简体   繁体   中英

How to debug a maven project in Eclipse?

I am trying to debug following maven project in Eclipse: https://code.google.com/p/cloudscale/

I followed the instructions of RickHigh (found here https://stackoverflow.com/a/19986408/3014213 ) and when I write mvnDebug exec:exec in Terminal the lines

Preparing to Execute Maven in Debug Mode
Listening for transport dt_socket at address: 8000

appears and after starting the Remote Java Application in Eclipse, the project is started BUT it does not hold on breakpoints...

Any ideas, what could go wrong?

When you install m2e plugin in Eclipse, it will show you a link in Console view to automatically connect debugger (ie create remote debugger launch configuration) to your process when it spills "Listening for transport dt_socket at address: 8000" message to the console. So, your debugger is basically one click away.

The debugger may be connected to the wrong JVM - not the one created by exec:exec . Try remote debugging like here: https://stackoverflow.com/a/22367089/1878731

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM