java.lang.NoClassDefFoundError: org/codehaus/plexus/classworlds/launcher/Launcher 问题的解决

发表于: java/j2ee | 作者: | 日期: 2013/8/14 10:08
标签:

从svn上checkout下CXF的源码,准备看看,结果mvn的时候收到如下异常:

Exception in thread “main” java.lang.NoClassDefFoundError: org/codehaus/plexus/classworlds/launcher/Launcher
Caused by: java.lang.ClassNotFoundException: org.codehaus.plexus.classworlds.launcher.Launcher
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

放狗搜了一下,发现是因为环境变量中同时设置了M2_HOME和M3_HOME造成的,删除M2_HOME,即可成功构建。
[参考链接:https://blogs.oracle.com/sreekanth/entry/java_lang_noclassdeffounderror_org_codehaus]

: https://blog.darkmi.com/2013/08/14/3321.html

本文相关评论 - 1条评论都没有呢
Post a comment now » 本文目前不可评论

No comments yet.

Sorry, the comment form is closed at this time.