2016-01-29 178 views
0

我試圖安裝maven插件來eclipse luna。 版本:Luna服務版本1a(4.4.1)無法在eclipse中安裝Maven插件

我按照以下步驟操作, 幫助>安裝新軟件。

添加URL與工作 - http://download.eclipse.org/technology/m2e/releases

入選Eclipse中的所有Maven的整合。

然後點擊下一步,接受許可協議並完成。

但得到錯誤

 An error occurred while collecting items to be installed 
    session context was:(profile=epp.package.java, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=). 
    No repository found containing: osgi.bundle,org.eclipse.m2e.archetype.common,1.6.2.20150902-0001 
    No repository found containing: osgi.bundle,org.eclipse.m2e.core,1.6.2.20150902-0002 
    No repository found containing: osgi.bundle,org.eclipse.m2e.core.ui,1.6.2.20150902-0002 
    No repository found containing: osgi.bundle,org.eclipse.m2e.discovery,1.6.2.20150902-0002 
    No repository found containing: osgi.bundle,org.eclipse.m2e.editor,1.6.2.20150902-0002 
    No repository found containing: osgi.bundle,org.eclipse.m2e.editor.xml,1.6.2.20150902-0002 
    No repository found containing: osgi.bundle,org.eclipse.m2e.jdt,1.6.2.20150902-0002 
    No repository found containing: osgi.bundle,org.eclipse.m2e.jdt.ui,1.6.2.20150902-0002 
    No repository found containing: osgi.bundle,org.eclipse.m2e.launching,1.6.2.20150902-0002 
    No repository found containing: osgi.bundle,org.eclipse.m2e.lifecyclemapping.defaults,1.6.2.20150902-0002 
    No repository found containing: osgi.bundle,org.eclipse.m2e.logback.appender,1.6.2.20150902-0002 
    No repository found containing: osgi.bundle,org.eclipse.m2e.logback.configuration,1.6.2.20150902-0002 
    No repository found containing: osgi.bundle,org.eclipse.m2e.maven.indexer,1.6.2.20150902-0001 
    No repository found containing: osgi.bundle,org.eclipse.m2e.maven.runtime,1.6.2.20150902-0001 
    No repository found containing: osgi.bundle,org.eclipse.m2e.maven.runtime.slf4j.simple,1.6.2.20150902-0001 
    No repository found containing: osgi.bundle,org.eclipse.m2e.model.edit,1.6.2.20150902-0002 
    No repository found containing: osgi.bundle,org.eclipse.m2e.profiles.core,1.6.2.20150902-0002 
    No repository found containing: osgi.bundle,org.eclipse.m2e.profiles.ui,1.6.2.20150902-0002 
    No repository found containing: osgi.bundle,org.eclipse.m2e.refactoring,1.6.2.20150902-0002 
    No repository found containing: osgi.bundle,org.eclipse.m2e.scm,1.6.2.20150902-0002 
    No repository found containing: org.eclipse.update.feature,org.eclipse.m2e.feature,1.6.2.20150902-0002 
    No repository found containing: org.eclipse.update.feature,org.eclipse.m2e.logback.feature,1.6.2.20150902-0002 
    No repository found containing: osgi.bundle,org.eclipse.m2e.workspace.cli,0.3.1 

後,我已經安裝了像SVN,螞蟻,TestNG的等許多插件,但無法maven進行。也嘗試與日食市場的地方,但面臨同樣的錯誤。優雅的人都可以幫忙。

+0

是否正確地能夠連接到互聯網的日食? ...檢查你的代理設置...你可以通過在eclipse中打開一個瀏覽器併發出一個web請求來測試 – saurav

+0

是的,它已連接。還檢查代理設置,它們都可以。在eclipse瀏覽器中打開url也可以正常工作。 –

回答

0

最後我解決了這個問題。我已經使用了月食Luna服務版本1a(4.4.1)。但我不知道問題出在哪裏,但我下載了最新的月食Luna,然後添加了所需的插件。它已成功安裝。然後我用新的eclipse將我的項目導入新的工作空間。現在它工作正常。