无法在eclipse中安装Maven插件

时间:2016-01-29 11:28:46

标签: eclipse maven eclipse-plugin eclipse-marketplace

我正在尝试安装maven插件来eclipse luna。 版本:Luna Service Release 1a(4.4.1)

我按照以下步骤操作, 帮助>安装新软件。

使用 - 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,ant,testng等。但无法继续使用maven。也试过eclipse市场但面临同样的错误。优雅的人可以提供帮助。

1 个答案:

答案 0 :(得分:0)

最后我解决了这个问题。我使用了eclipse Luna Service Release 1a(4.4.1)。然而,我不知道问题是什么,但我下载了最新的eclipse Luna,然后添加了所需的插件。它已成功安装。然后我用新的日食将我的项目导入新的工作空间。现在工作正常。