无法在 eclipse 中安装 Maven 插件

Could not install Maven plugin in eclipse

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

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

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

我终于解决了这个问题。我使用过 eclipse Luna Service Release 1a (4.4.1)。但我不知道问题出在哪里,但我下载了最新的 eclipse Luna,然后添加了所需的插件。它已成功安装。然后我用新的 eclipse 将我的项目导入到新的工作-space。现在一切正常。