RE: [m2] how to debug a plugin

2006-10-27 Thread Mark Struberg
Hi Fred!

If you are using eclipse, you will need to start maven
via the eclipse 'debug as Java Application'.

There are a few things to consider (example is based
on my linux installation in /opt/apache/maven):

1.) You have to add the maven boot jars to the
classpath (all jars from /opt/apache/maven/core)

2.) Set the main class to
'org.codehaus.classworlds.Launcher'
and select 'Include libraries when searching for main
class'

3.) set the proper program arguments. e.g.: clean
package

4.) set the VM arguments:
-Dclassworlds.conf=/opt/apache/maven/bin/m2.conf
-Dmaven.home=/opt/apache/maven/

5.) Set the working directory to the directory where
your example project resides. With other words, the
location of the pom you like to execute while
debugging.

6.) Set the plugin you like to debug as project for
the debugging session. This way, the classes will be
taken from the local build rather then the artifact
from the repository.


oki, that should be all. 

hope this helps.


lg,
strub

--- [EMAIL PROTECTED] schrieb:

> hi,
> how can i debug the release plugin?
> i'm using eclipse.
> 
> thanks fredy
>  
> 
> Kabel Deutschland bietet Ihnen Internet,
> Telefonieren und Fernsehen aus einer Hand.
> Informieren Sie sich über unsere Produkte unter 
> 
> www.kabeldeutschland.de
>  
> Diese E-Mail und etwaige Anhänge enthalten
> vertrauliche und/oder rechtlich geschützte
> Informationen. Wenn Sie nicht der richtige Adressat
> sind, benachrichtigen Sie bitte den Absender und
> vernichten Sie anschließend diese Mail und die
> Anlagen.
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 







___ 
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: 
http://mail.yahoo.de

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [m2] how to debug a plugin

2006-10-26 Thread Scott Ryan
Look in the mvn.bat or mvn.sh file and there are details on how to debug
maven plugins

@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
@REM e.g. to debug Maven itself, use
@REM set
MAVEN_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_soc
ket,server=y,suspend=y,address=8000


Scott Ryan
Chief Technology Officer
Soaring Eagle L.L.C.
[EMAIL PROTECTED]
www.soaringeagleco.com
(303) 263-3044

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Thursday, October 26, 2006 3:29 AM
To: users@maven.apache.org
Subject: [m2] how to debug a plugin


hi,
how can i debug the release plugin?
i'm using eclipse.

thanks fredy


Kabel Deutschland bietet Ihnen Internet, Telefonieren und Fernsehen aus
einer Hand. Informieren Sie sich über unsere Produkte unter

www.kabeldeutschland.de

Diese E-Mail und etwaige Anhänge enthalten vertrauliche und/oder rechtlich
geschützte Informationen. Wenn Sie nicht der richtige Adressat sind,
benachrichtigen Sie bitte den Absender und vernichten Sie anschließend diese
Mail und die Anlagen.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]