无法在eclipse中安装Maven插件

问题描述 投票:0回答:2

我正在尝试安装

maven
插件到 eclipse luna。 版本:Luna 服务版本 1a (4.4.1)

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

添加了与 - http://download.eclipse.org/technology/m2e/releases

一起使用的 URL

为 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 market-place 但面临同样的错误。优雅的任何人都可以提供帮助。

eclipse maven eclipse-plugin eclipse-marketplace
2个回答
0
投票

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


0
投票

您需要粘贴以下链接https://download.eclipse.org/technology/m2e/releases/latest一切都会正常工作

© www.soinside.com 2019 - 2024. All rights reserved.