2013-04-23 102 views
4

我嘗試使用「幫助」>「安裝新軟件」和更新站點http://download.eclipse.org/technology/m2e/releases安裝適用於Eclipse Juno的M2E插件。當我嘗試安裝「Maven的集成爲Eclipse」我得到以下信息:Eclipse m2e插件似乎需要org.eclipse.jem.util 0.0.0

Cannot complete the install because one or more required items could not be found. 
    Software being installed: m2e - Maven Integration for Eclipse 1.3.1.20130219-1424 (org.eclipse.m2e.feature.feature.group 1.3.1.20130219-1424) 
    Missing requirement: m2e - Maven Integration for Eclipse 1.3.1.20130219-1424 
    (org.eclipse.m2e.feature.feature.group 1.3.1.20130219-1424) requires 
    'org.eclipse.jem.util 0.0.0' but it could not be found 

我如何才能避免這個錯誤並安裝插件M2E?

回答

5

此問題是由於我的Eclipse安裝目錄不是 可寫。這是一個全新的未配置的開箱即用安裝,我在Linux上將安裝在/opt/eclipse下。但是,除非 另有配置,否則Eclipse期望寫入 configurationp2安裝目錄的子目錄,並且如果這些目錄不是可用於寫入的 ,則不會給出任何明顯的錯誤。

您可以通過確保用戶可以寫入Eclipse的安裝目錄 來避免此錯誤。

+1

感謝方便的提示!我將Eclipse安裝到一個根目錄的文件夾(想要在用戶之間共享),因此將它作爲'sudo'啓動,然後運行安裝程序。 – 2013-06-24 00:12:33

+0

@amoe - 你可以接受你自己的(偉大)答案,你知道:) – Ben 2014-01-19 23:47:45

+0

這也解決了我的問題。我已將eclipse移到OSX上的「應用程序」目錄中。這當然不能由應用程序本身寫入。我的解決方案是將eclipse移動到我的文檔目錄。 – 2015-03-26 21:12:12

5

即使運行具有完全權限的Eclipse實例,我也遇到同樣的問題。 什麼實際解決我的問題是提供了Eclipse更新站點(即在我的情況...)

http://download.eclipse.org/releases/helios/ 

...除了Maven的更新網站本身:

http://download.eclipse.org/technology/m2e/releases