eclipse maven 错误Errors occurred during the build...(524)之类的错误解决办法

情景:

        使用eclipse创建一个maven工程后,再次启动eclipse报maven错误。


错误信息如下:      

Errors occurred during the build.
 Error instantiating builder ‘org.eclipse.m2e.core.maven2Builder’.
Plug-in org.eclipse.m2e.core was unable to load class org.eclipse.m2e.core.internal.builder.MavenBuilder.
 An error occurred while automatically activating bundle org.eclipse.m2e.core (524).
 Plug-in org.eclipse.m2e.core was unable to load class org.eclipse.m2e.core.internal.builder.MavenBuilder.
 An error occurred while automatically activating bundle org.eclipse.m2e.core (524).

解决办法:

      我的工作机器环境上一开始使用的java6 + maven 3.1,此问题基本上频繁出现,而家里机器是java8+maven3.3,没有出现此类情况,所以一开始我是升级了java和maven版本,后来此类问题还是时不时存在,经查询了google后得知一种解决办法非常好,就是使用其他好的workspace下的\.metadata\.plugins\org.eclipse.e4.workbench\workbench.xmi进行替换,替换后重启eclipse就可以了。

猜你喜欢

转载自blog.csdn.net/rj08zhou/article/details/48263363
今日推荐