How do you debug Maven plugin tests done using maven-invoker-plugin?

I would like to add some tests for the Maven plugin with maven-invoker-plugin. How to do it? It seems I can not find any resources, and it seems that this is simply not being done:

MAVEN_OPTS="-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=9001" mvn clean install

I mean - I can connect this way, but when it starts maven-invoker-plugin, it just sits there. Forever...

Any help would be appreciated.

+5
source share
2 answers

You should be aware that the maven-invoker-plugin calls a separate Maven instance to run integration tests, such as manually calling mvn with the appropriate configuration parameters. This is the reason why maven sticks ...

invoker.mavenOpts invoker.properties. - mavenExecuteable mvnDebug mvn.

+8

-, ( build.log) , Maven , - .

0

All Articles