In some instances you cannot reproduce a failure or condition running a test in an IDE that manifests itself when you run it on your build server or via maven on the command line.
In that case, it is very helpful to be able to remotely attach your IDE to the running maven process and then step through the code.
To do so you will need to:
Execute maven on the command line as follows (adding any additional -D args → Continue reading “Debugging Maven Tests by Connecting an IDE to the Maven JVM”