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

来源:互联网 发布:阿里云主机和域名绑定 编辑:程序博客网 时间:2024/06/05 01:55

情景:

        使用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就可以了。

1 0