gwtp1.2.1.jar : java.lang.NoClassDefFoundError: org/apache/maven/artifact/versioning/ArtifactVersion

933 views
Skip to first unread message

Axel R

unread,
Mar 17, 2014, 4:42:50 PM3/17/14
to gwt-pl...@googlegroups.com
Hi,
I am not using maven. I am using Eclipse and I can compile my project with gwtp1.21.jar...but if I try to lauch superDevmode or Devmode in Eclipse, I have the following error (and finally it saids that compilation fails):

[ERROR] Unexpected internal compiler error
java.lang.NoClassDefFoundError: org/apache/maven/artifact/versioning/ArtifactVersion
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2404)
        ...
Caused by: java.lang.ClassNotFoundException: org.apache.maven.artifact.versioning.ArtifactVersion

Do you if I should update an eclipse plugin or add an additional jar (dependency) to have my project compiling with gwtp1.21.jar ?

Thanks you,
Axel


Tom

unread,
Mar 25, 2014, 7:16:30 AM3/25/14
to gwt-pl...@googlegroups.com
Hi,

your are not alone ;-)

Same error here. No successful compiling or DevMode is possible.
[...]
         Compiling
            Compiling permutation 19...
   Compile of permutations succeeded
[ERROR] Unexpected internal compiler error
java.lang.NoClassDefFoundError: org/apache/maven/artifact/versioning/ArtifactVersion
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at com.google.gwt.core.ext.linker.impl.StandardLinkerContext.resetLinkers(StandardLinkerContext.java:528)
at com.google.gwt.core.ext.linker.impl.StandardLinkerContext.<init>(StandardLinkerContext.java:175)
at com.google.gwt.dev.Link.link(Link.java:173)
at com.google.gwt.dev.Compiler.run(Compiler.java:200)
at com.google.gwt.dev.Compiler.run(Compiler.java:132)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:99)
at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:55)
at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:50)
at com.google.gwt.dev.Compiler.main(Compiler.java:106)
Caused by: java.lang.ClassNotFoundException: org.apache.maven.artifact.versioning.ArtifactVersion
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 13 more

Regards
Tom

Tom

unread,
Mar 25, 2014, 8:44:35 AM3/25/14
to gwt-pl...@googlegroups.com
Hi,

I dropped "maven-artifact-3.2.1.jar" from http://search.maven.org/#browse%7C1473530134 into my WEB-INF\lib and compilation succeeded again.
Why do I need this. I don't use maven in my project... Does gwtp has a dependency to maven-artifact (or is it gwt 2.6)?

Regards,
Tom

Christian Goudreau

unread,
Mar 25, 2014, 4:05:43 PM3/25/14
to gwt-pl...@googlegroups.com
We should try to remove this. This is used in order to find if there's an update available for you. Like Google App Engine does.


--
You received this message because you are subscribed to the Google Groups "GWTP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gwt-platform...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Christian Goudreau | CEO - Président
M: 1.877.635.1585 | S: christian.goudreau
Reply all
Reply to author
Forward
0 new messages