“构建工作区”遇到错误

时间:2014-09-19 08:24:27

标签: eclipse maven build workspace

Eclipse Luna 4.4.0

Build

期间发生错误
Error instantiating builder 'ord.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 (547).
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 (547).
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.m23.core (547).
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 (547).

如果我从工作区中删除文件夹.metadata以及所有.project.setting数据,则不会收到任何错误消息。经过一天的工作,我会得到同样的错误。

8 个答案:

答案 0 :(得分:38)

尝试下一步:

  1. 转到您的eclipse安装文件夹
  2. 运行" eclipse.exe -clean"
  3. 正常工作
  4. 享受

答案 1 :(得分:10)

我遇到了同样的问题,我相信罪魁祸首是我安装的Sonarqube插件。

这次讨论指出了我的方向:

http://forum.spring.io/forum/spring-projects/springsource-tool-suite/749864-sts-ggts-3-6-0-m1-released

卸载了Sonarqube插件,错误消失了。

答案 2 :(得分:3)

我卸载了我的Netbeans,因为Eclipse和Netbeans都使用相同的工作区。

我卸载了Netbeans,错误消失了。

答案 3 :(得分:2)

就我而言,问题导致我的Eclipse在过时的IBM Java虚拟机上运行。我更新了我的IBM JRE,我修改了我的eclipse.ini以更新-vm参数,使其指向新安装,并解决了问题。

答案 4 :(得分:1)

就我而言,上述解决方案均无效。我使用eclipse有两个不同的工作区,一个工作,秒有这个错误。我的解决方案是从工作工作区复制以下文件到损坏的文件:

[workspace]/.metadata/.plugins/org.eclipse.m2e.core
[workspace]/.metadata/.plugins/org.eclipse.m2e.core.ui
[workspace]/.metadata/.plugins/org.eclipse.m2e.jdt
[workspace]/.metadata/.plugins/org.eclipse.m2e.launching
[workspace]/.metadata/.plugins/org.eclipse.m2e.logback.configuration

我正在使用eclipse mars 64位版本。 因此,也许在您的整个工作空间被破坏之前,这可能是一个从干净的安装到复制的解决方案。

答案 5 :(得分:0)

排除错误js文件。它肯定会起作用..

答案 6 :(得分:0)

我将工作区保留在Dropbox上。我发生了这个问题,并设法通过在[workspace] /。metadata /中搜索单词' Conflicted'来解决它。并删除Dropbox创建的所有这些文件。当我重新启动Eclipse时,错误消失了。

答案 7 :(得分:0)

我已经在bin文件(C:\ Program Files \ Java \ jdk-X.X.X \ bin)中将'javaw.exe'添加为系统变量,并删除了所有模块信息。这对我有用。但是,这可能特定于Enterprise Java软件包。

相关问题