How Do I Run Maven in Debug Mode
Start the Maven Test for This Class Only, in Debug Mode: Mvn -Dtest=Mysuperclasstest -Dmaven. Surefire. Debug Test. … Open the Debug Configuration in Eclipse...
Start the Maven test for this class only, in debug mode: mvn -Dtest=MySuperClassTest -Dmaven.surefire. debug test. … Open the Debug Configuration in Eclipse and set up a remote application on port 5005. Run the configuration. The test will resume.
Can we debug in Maven?
8 Answers. If you are using Maven 2.0. 8+, run the mvnDebug command in place of mvn and attach a debugger on port 8000.
How do I run Maven in debug mode intelliJ?
- from the command line, run maven goal with mvnDebug instead of mvn . E.g. mvnDebug clean.
- Open the source of the maven plugin you want to debug in intelliJ and set a breakPoint.
- In IDEA, add a Remote JVM Debug Configuration. …
- Run the Configuration in Debug mode.