【问题标题】:'Building workspace' has encountered an error“构建工作区”遇到错误
【发布时间】:2014-11-13 18:50:44
【问题描述】:

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 数据,我不会收到任何错误。经过一天的工作,我会得到同样的错误。

【问题讨论】:

    标签: eclipse maven build workspace


    【解决方案1】:

    尝试接下来的步骤:

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

    【讨论】:

    • 我在 eclipse.ini 中更改了 jdk 版本。干净启动解决了这个问题。
    • 这也对我有用。谢谢!!! PS:更新m2e插件后出现此错误。更新期间运行了另一个eclipse实例。我认为这是问题所在......
    • Running -clean 对我有用。在 Mac 上,这个命令是 '/Applications/eclipse\ 3/Eclipse.app/Contents/MacOS/eclipse -clean'
    • -clean 帮助 Luna 4.4.1
    • 在火星上也有帮助
    【解决方案2】:

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

    这次讨论为我指明了方向:

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

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

    【讨论】:

    • 同样的问题。安装 SonarQube 插件让 eclipse 崩溃了。将很快向 SQ 提交错误报告。
    【解决方案3】:

    我卸载了我的 Netbeans,因为 Eclipse 和 Netbeans 都在同一个工作区中。

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

    【讨论】:

      【解决方案4】:

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

      【讨论】:

        【解决方案5】:

        就我而言,上述解决方案均无效。我将 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 位版本。 因此,也许在您的整个工作空间被破坏之前,这可能是从全新安装到复制的解决方案。

        【讨论】:

          【解决方案6】:

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

          【讨论】:

            【解决方案7】:

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

            【讨论】:

              【解决方案8】:

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

              【讨论】:

                猜你喜欢
                • 2015-03-04
                • 1970-01-01
                • 2018-11-30
                • 1970-01-01
                • 1970-01-01
                • 2010-09-18
                • 2021-04-27
                • 1970-01-01
                • 1970-01-01
                相关资源
                最近更新 更多