How to Debug a Maven Plug-in at Build time.
1) Open maven plug-in source code using your favorite IDE ( Eclipse, InterlliJ IDEA etc) and set break points in codes that you are going to debug.
2) Start build project using following command.
3) maven starts to Listen on port 8000 till a remote debugger connects.
4) Start remote debug on port 8000 using your IDE. It will trigger the build process with remote debug.
1) Open maven plug-in source code using your favorite IDE ( Eclipse, InterlliJ IDEA etc) and set break points in codes that you are going to debug.
2) Start build project using following command.
$ mvnDebug clean install
3) maven starts to Listen on port 8000 till a remote debugger connects.
$ mvnDebug clean install
Preparing to Execute Maven in Debug Mode
Listening for transport dt_socket at address: 8000
4) Start remote debug on port 8000 using your IDE. It will trigger the build process with remote debug.
Actually I read it yesterday but I had some thoughts about it and today I wanted to read it again because it is very well written.
ReplyDeletehttp://myhittricks.blogspot.com/