2016-01-29 180 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将我的项目导入新的工作空间。现在它工作正常。