December 2014
Intermediate to advanced
298 pages
6h 22m
English
For a developer, remote debugging is a must-have feature for any build system. Why do we need remote debugging for a build system? This is extremely useful when you run your tests through the build itself. If any of the tests fail during the build, you should be able to debug and pinpoint the problem. The following command will run Maven in the debugging mode:
$ mvn clean install -Dmaven.surefire.debug
When the build starts to execute tests, it will be paused to connect with an IDE. You can connect Eclipse, NetBeans, or your favorite IDE to port 5005 in order to start remote debugging. By default, Maven opens up port 5005 for remote debugging.
------------------------------------------------------- T E S T S ------------------------------------------------------- ...
Read now
Unlock full access