If you need to debug your Maven plugin, first, run with the command
mvnDebug <goal>. You will see something like this:
Now add a breakpoint with your IntelliJ to your desired line code.
Add a new Remote seettings:
Finally, run and the maven command will automatically proceed.
Last modification 2018-11-10 (860b68a)