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 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?

  1. from the command line, run maven goal with mvnDebug instead of mvn . E.g. mvnDebug clean.
  2. Open the source of the maven plugin you want to debug in intelliJ and set a breakPoint.
  3. In IDEA, add a Remote JVM Debug Configuration. …
  4. Run the Configuration in Debug mode.
Sophia Al-Mansoor

Sophia Al-Mansoor

Global Business & E-Commerce Reporter

Sophia analyzes international trade, startup ecosystems, retail transformation, and supply chain logistics for modern digital publications.

Share this article
Twitter Facebook Pinterest