且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Maven 错误:无法找到或加载主类 org.codehaus.plexus.classworlds.launcher.Launcher

更新时间:2023-11-18 16:03:10

我也遇到了这个问题,发现 这篇文章.对于 Maven3,将我的环境变量名称从 M2_HOME 更改为 M3_HOME 可以解决问题.我在运行 OSX 10.9 和 JDK 1.7 的 Mac 上.希望这会有所帮助.

I hit this problem too, and found this article. For Maven3, changing my environment variable name from M2_HOME to M3_HOME did the trick. I am on a Mac running OSX 10.9 with JDK 1.7. Hope this helps.

注意:如果已经设置,请删除 M2_HOME.例如:unset M2_HOME

Note: Please delete M2_HOME, if already set. Eg: unset M2_HOME