2014-09-19 70 views
13

的Eclipse 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數據,我得到沒有錯誤。工作一天後,我會得到同樣的錯誤。

回答

3

我卸載了我的Netbeans,因爲Eclipse和Netbeans都使用同一個工作區。

我卸載了Netbeans,錯誤消失了。

36

嘗試下面的步驟:

  1. 轉到你的eclipse安裝文件夾
  2. 運行 「的eclipse.exe -clean」
  3. 工作正常
  4. 享受
+2

這對我有效...優秀的解決方案! – javafan 2014-12-26 17:13:25

+0

我在eclipse.ini中更改了jdk版本。乾淨啓動解決了這個問題。 – 2015-02-05 18:53:35

+0

-clean沒有幫助。 – 2015-02-26 16:33:58

2

在我的情況下,導致的問題是我的Eclipse運行在過時的IBM Java虛擬機上。我更新了我的IBM JRE,我修改了我的eclipse.ini以更新-vm參數,以便指向新的安裝,並解決了問題。

0

在我的情況下,沒有上述解決方案的工作。我用兩個不同的工作區的日食,一個工作,秒有這個錯誤。我的解決辦法是從工作的工作空間中的以下文件拷貝過來損壞之一:

[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火星64位版本。 因此,也許在整個工作區被破壞之前,這可能是從乾淨安裝到複製的解決方案。

0

排除錯誤的js文件。它肯定會工作..

0

我保持我的工作區在Dropbox上。我遇到了這個問題,並設法通過在[workspace] /。metadata /中搜索單詞'conflicted'並刪除Dropbox創建的所有文件來解決此問題。重新啓動Eclipse時錯誤消失了。

0

在我的情況下「建築工作區遇到錯誤」,因清潔.m2存儲庫而變慢

+0

以某種方式閱讀更像評論而不是答案。而「放慢」......我想你的意思是:清理......阻止了這個問題的發生? – GhostCat 2017-09-08 12:35:49