"构建工作区"遇到了一个错误。

16

Eclipse Luna 4.4.0

构建过程中发生错误

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个回答

45

请尝试以下步骤:

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

我已经在eclipse.ini中更改了jdk版本。清除并重新启动解决了问题。 - gp.
这对我也起作用了。谢谢!!! PS: 在更新m2e插件后,我遇到了这个错误。在更新期间还有另一个Eclipse实例在运行。我认为这就是问题所在... - simpleusr
运行 -clean 对我有用。在 Mac 上,该命令是 '/Applications/eclipse\ 3/Eclipse.app/Contents/MacOS/eclipse -clean'。 - Satya
清理了Luna 4.4.1。 - miloxe
1
非常好,谢谢! - Stephen Kennedy
显示剩余4条评论

10

2
相同的问题。安装 SonarQube 插件导致 Eclipse 无法正常工作。很快将向 SQ 提交错误报告。 - jordanpg

3

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

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


2

在我的情况下,问题的原因是我的Eclipse运行在一个过时的IBM Java虚拟机上。我更新了我的IBM JRE,修改了我的eclipse.ini文件以更新-vm参数,使其指向新的安装路径,并解决了这个问题。


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

我正在使用64位版本的Eclipse Mars。因此,在整个工作区被破坏之前,这可能是从干净的安装中复制的解决方案。

1
我将我的工作区保存在Dropbox上。 我遇到了这个问题,通过在[workspace] / .metadata /中搜索“conflicted”并删除Dropbox创建的所有这些文件来解决它。 当我重新启动Eclipse时,错误消失了。

0

排除错误的js文件,它肯定会正常工作。


0

我已将'javaw.exe'添加到bin文件夹(C:\ Program Files \ Java \ jdk-X.X.X \ bin)作为系统变量,并删除了所有模块信息。这对我有用。但是,这可能只适用于企业Java包。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接