I am trying to setup an environment where I can debug plugins that I
write using eclipse.

My first step of course, is to be able to kick off maven2 from within
eclipse.  I setup a debug configuration which executes the main class:

org.codehaus.classworlds.Launcher

And added the following vm arguments:
-classpath
"C:\maven\maven-2.0\bin\\..\core\boot\classworlds-1.1-alpha-2.jar; "
"-Dclassworlds.conf=C:\maven\maven-2.0\bin\\..\bin\m2.conf"
"-Dmaven.home=C:\maven\maven-2.0"       


And added all the libraries under /maven-2.0/lib  and maven-2.0/core

I execute the java command from the command line without a problem, but
when I attempt to launch it using eclipse I get an nullpointer exception
(it is reading the m2.conf file though)

java.lang.NullPointerException
        at
org.codehaus.classworlds.ClassWorld.loadClass(ClassWorld.java:142)
        at
org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.j
ava:234)
        at
org.codehaus.classworlds.Launcher.getEnhancedMainMethod(Launcher.java:19
6)
        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:294)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

Is there any additional tracing I can turn on?  Or does anyone see a
problem?


Ruel Loehr
JBoss QA
 
-----------------------------
512-626-2782
Yahoo: ruelloehr
Skype: ruelloehr
AOL: dokoruel


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

Reply via email to