2013-08-12 62 views
5

我正在使用Ubuntu 12.04 LTS上的Eclipse 3.7(indigo),並試圖安裝Maven插件。無法安裝用於Eclipse的Maven插件

正在關注this頁面,我在Eclipse安裝新軟件提示框中添加了http://download.eclipse.org/technology/m2e/releases。它識別URL並顯示「Maven Integration for Eclipse」

但是當我點擊下一步時,它會給出這個錯誤。

Cannot complete the install because one or more required items could not be found. 
    Software being installed: m2e - Maven Integration for Eclipse 1.4.0.20130601-0317 (org.eclipse.m2e.feature.feature.group 1.4.0.20130601-0317) 
    Missing requirement: Maven Integration for Eclipse (Editors) 1.4.0.20130601-0317 (org.eclipse.m2e.editor 1.4.0.20130601-0317) requires 'bundle org.slf4j.api 1.6.2' but it could not be found 
    Cannot satisfy dependency: 
    From: m2e - Maven Integration for Eclipse 1.4.0.20130601-0317 (org.eclipse.m2e.feature.feature.group 1.4.0.20130601-0317) 
    To: org.eclipse.m2e.editor [1.4.0.20130601-0317] 

我該怎麼辦?請幫忙。

+0

Eclipse Indigo的味道是什麼?如果是標準版,您可能需要使用適用於Java EE開發人員的Eclipse IDE,其中包含更多軟件包,並且您將有更好的機會將缺失的依賴項捆綁在一起 – user8658912

+0

這是從Ubuntu 12.04存儲庫安裝的eclipse。 – wrahool

+0

我建議您嘗試使用適用於Java EE開發人員的Eclipse IDE,網址爲http://www.eclipse.org/downloads/ – user8658912

回答

1

它似乎不知何故無法下載slf4j相關工件,現在您可以在安裝maven插件時取消選中該複選框。

請參閱附件圖片。

enter image description here

如果還沒有工作,然後手動下載插件,並在Eclipse插件文件夾中刪除它。

+0

您爲第一個鏈接提供了404錯誤。 – wrahool

+0

更新了答案。 – saurav

+0

找不到:-(我需要另一個解決方案謝謝 – Kohan95