Bug#585970: rename symlink classworlds.jar to classworlds-1.1.jar

Julien Wajsberg felash at gmail.com
Tue Jun 15 09:19:31 UTC 2010


Package: maven2
Version: 2.2.1-5

Hi,

I tried installing a software (ExoPlatform 3.0) using debian's maven,
but I got :

java.lang.ClassNotFoundException: org.codehaus.classworlds.Launcher

With Apache's maven 2.2.1, it works perfectly.

ExoPlatform uses something strange to build, with lots of Javascript
files run with Mozilla Rhino.

At the end, it runs classworlds using the following code :

    var mvnClasspath = [
      new java.net.URL("file:" + m2Home + "/core/boot/classworlds-1.1.jar"),
      new java.net.URL("file:" + m2Home + "/boot/classworlds-1.1.jar")
    ] ;

    var contextLoader= java.lang.Thread.currentThread().getContextClassLoader();
    var mvnLoader = new java.net.URLClassLoader(mvnClasspath, contextLoader);
    java.lang.Thread.currentThread().setContextClassLoader(mvnLoader);
    var  type = mvnLoader.loadClass("org.codehaus.classworlds.Launcher") ;

In apache's maven 2.2.1, classworlds jar is in
boot/classworlds-1.1.jar. In debian's distribution, it is in
boot/classworlds.jar.
That's why I get this ClassNotFoundException.

Then an obvious solution would be to rename the symlink to mimic
Apache's official distribution.

Thanks,
-- 
Julien





More information about the pkg-java-maintainers mailing list