Hi, You can use mvnDebug which will start mvn in debug mode (jvm level debugging) and then connect your debugger to the running instance.
Cheers Le 24 avr. 2013 17:59, "David Portabella" <[email protected]> a écrit : > I am trying to debug maven from my IDE (IntelliJ). > > To do so, I run from IntelliJ with this configuration: > > Main class: org.codehaus.plexus.classworlds.launcher.Launcher > VM options: > > -Dclassworlds.conf=/Users/david/nespresso/david/code_analysis/maven/apache-maven-3.0.5/apache-maven/src/bin/m2.conf > > -Dmaven.home=/Users/david/nespresso/david/code_analysis/maven/apache-maven-3.0.5/apache-maven/src/ > Program arguments: clean install > Working directory: /test/my_example_maven_project > > --- > but I get the following: > > [ERROR] Error executing Maven. > [ERROR] java.util.NoSuchElementException > role: org.apache.maven.eventspy.internal.EventSpyDispatcher > roleHint: > [ERROR] Caused by: null > > > --- > What am I missing? > How can I run/debug a "mvn clean install" from IntelliJ? > > > Regards, > David > > > --- > David Portabella - Senior IT Architect > AlmaZ Informatique SA - www.almazsa.com > [email protected] > +41 78 802 6411 >
