Hi Franz,

I'll take a look at your writeup (thanks).  However, I am happily
debugging right now in the DefaultPlexusContainer code that appears to
be the source of my problem.  I'll report on my findings if/when I
figure it out.  

Thanks again, though.  I will look over your writeup to make sure I
didn't miss anything. -- Eric

-----Original Message-----
From: Franz Allan Valencia See [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 12, 2006 11:40 PM
To: Maven Developers List
Subject: Re: debugging maven with eclipse

Good day to you, Eric,

I havve just created (or rather, continued) this short tutorial on
debugging
maven with eclipse, [1]

However, I am a windows user, so my answer is based on windows. I am not
sure about the exact steps in linux but more or less, the concept of
running
in debug mode is the same.

Cheers,
Franz

[1]
http://docs.codehaus.org/display/MAVENUSER/Dealing+with+Eclipse-based+ID
E

On 10/12/06, Swenson, Eric <[EMAIL PROTECTED]> wrote:
>
> I've managed to create an eclipse project by running "mvn
> eclipse:eclipse" in the maven-2.0.4 source tree.  And after defining
the
> M2_REPO classpath variable, I was able to get Eclipse to not show any
> errors when building.  In setting up for debugging, I use the command
> line parameters:
>
>
>
>             -Dclassworlds.conf=/opt/maven-2.0.4/bin/m2.conf
>
>             -Dmaven.home=/opt/maven-2.0.4
>
>
>
> When I run, I get the error:
>
>
>
> java.lang.Exception: classworlds configuration not specified nor found
> in the classpath
>
>       at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:423)
>
>       at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>
>
>
>
>
> Now, I believe I *am* specifying the classworlds config path correctly
> (see above command line parameter).  I can't seem to find the source
for
> classworlds (I can browse the cvs repository and download individual
> files from this package, but I can't find a source jar file to
> download).
>
>
>
> Anyone know what is going on?  Anyone know where I can download the
> source to classworlds so I can debug into Launcher to see why it
doesn't
> think it can find a conf file?  Thanks. -- Eric
>
>
>
>
>
>
>
> ________________________________
>
> From: Swenson, Eric
> Sent: Thursday, October 12, 2006 9:18 PM
> To: 'Maven Developers List'
> Subject: debugging maven with eclipse
>
>
>
> Can anyone point me to instructions on how to use eclipse to debug
> maven?  I'm having a problem that no one, so far, has commented on -
> namely that when I do a reactor build of my project (top-level with
> sub-projects), I get the error (when doing "mvn install"):
>
>
>
> [ERROR] BUILD ERROR
>
> [INFO]
>
------------------------------------------------------------------------
>
> [INFO] Internal error in the plugin manager executing goal
> 'org.apache.maven.plugins:maven-jar-plugin:2.1:jar': Unable to find
the
> mojo 'org.apache.maven.plugins:maven-jar-plugin:2.1:jar' in the plugin
> 'org.apache.maven.plugins:maven-jar-plugin'
>
>
>
>
>
> But when I go to each subdirectory in the project and do a "mvn
> install", they all complete successfully.  Only when I try to run from
> the parent directory do I have this problem.  Running with the -X -e
> options doesn't give me anything useful.
>
>
>
> Is there an easy way to produce an eclipse project from the maven2
> source tree?  Or do I have to manually all all the "src" directories
in
> a new project?  I'd like to run under the debugger and step through
the
> execution to pinpoint the issue.  Thanks. -- Eric
>
>
>


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

Reply via email to