I have created a maven plugin via maven-archetype-mojo. My intellij version is: IntelliJ 2018.1.7
And I have tried the following steps to initiate the remote debugging process.
- I created a remote debug configuration and pointed it to port 8000
- I run mvnDebug clean install in the terminal of the project folder, and it showed:
- Preparing to execute Maven in debug mode Listening for transport dt_socket at address: 8000
- Then I run the remote debug option, it returned:
- Connected to the target VM, address: 'localhost:8000', transport: 'socket'
- And in the terminal the plugin started to rebuild. After the rebuild remote debug session is disconnected.
This is my configuration for remote debug:
Any ideas?
Console output when connect with remote debug:
Preparing to execute Maven in debug mode
Listening for transport dt_socket at address: 8000
[INFO] Scanning for projects...
[INFO]
[INFO] -------------------< com.alibaba.rhino:mc-generator >-------------------
[INFO] Building mc-generator maven plugin 1.0-SNAPSHOT
[INFO] ----------------------------[ maven-plugin ]----------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ mc-generator ---
[INFO] Deleting /Users/shuohuang/Projects/mcgenerator/target
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.394 s
[INFO] Finished at: 2019-01-16T16:43:07+08:00
[INFO] ------------------------------------------------------------------------