2012-02-02 120 views
4

在試圖在Eclipse安裝Maven插件: 過程是...錯誤:Maven安裝在Eclipse

In Eclipse3.5 version...

Help-->InstallNewSoftware-->Add-->

Name=Maven URL=http://m2eclipse.sonatype.org/sites/m2e -->ok

然後我得到了以下錯誤

Cannot complete the install because one or more required items could not be found. 
    Software being installed: Maven Integration for Eclipse (Required) 0.12.1.20110112-1712 (org.maven.ide.eclipse.feature.feature.group 0.12.1.20110112-1712) 
    Missing requirement: Maven Integration for Eclipse (Editors) 0.12.1.20110112-1712 (org.maven.ide.eclipse.editor 0.12.1.20110112-1712) requires 'bundle org.eclipse.zest.core 0.0.0' but it could not be found 
    Cannot satisfy dependency: 
    From: Maven Integration for Eclipse (Required) 0.12.1.20110112-1712 (org.maven.ide.eclipse.feature.feature.group 0.12.1.20110112-1712) 
    To: org.maven.ide.eclipse.editor [0.12.1.20110112-1712] 

請幫助我。

+1

Maven Eclipse集成已完全轉移到http://eclipse.org,嘗試使用新的更新URL,http://download.eclipse.org/technology/m2e/releases然而,沒有理由爲什麼Sonatype會失敗。 – Nishant 2012-02-02 07:36:02

回答

2

從Indigo版本開始,M2E不再需要單獨的Sonatype更新端。 M2E可以在預配置的「Indigo」更新站點中找到。

在Eclipse中,選擇幫助 - >安裝新軟件菜單項。選擇「Indigo」更新站點。

選擇一個站點後,最多可能需要一分鐘才能在此「安裝」對話框的表格中擴展軟件選項。一旦Eclipse下載了軟件選擇,請在「常規工具」下選擇「M2E - 適用於Eclipse的Maven集成」。 完成安裝並重新啓動Eclipse。