maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Baptiste MATHUS ...@batmat.net>
Subject Re: debug "mvn clean install" from IntelliJ
Date Wed, 24 Apr 2013 20:30:12 GMT
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" <david.portabella@gmail.com> 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
> david.portabella@almazsa.com
> +41 78 802 6411
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message