【问题标题】:Can't install maven plugin for eclipse on Ubuntu 12.04无法在 Ubuntu 12.04 上为 Eclipse 安装 Maven 插件
【发布时间】:2013-09-04 09:00:32
【问题描述】:

我尝试在 eclipse Indigo 上安装 - 版本:3.7.2,Maven 插件。

这里一步一步我做了什么:

帮助 => 安装新软件... => 使用 => 添加 http://download.eclipse.org/technology/m2e/releases 位置 => 勾选 Maven integration for eclipse => 下一步。

但是还没完成就弹出来了:

Cannot complete the install because one or more required items could not be found.
  Software being installed: m2e - Maven Integration for Eclipse 1.4.0.20130601-0317 (org.eclipse.m2e.feature.feature.group 1.4.0.20130601-0317)

但是当我寻找 Window => Preferences 时,Maven 不存在。

我想将 eclipse 更新到 kepler 版本。我将需求存储库添加到

Window - Preferences - Install/Update - Available Softsarve..

当我转到Help - Check for Updates 时,我看到了下一个错误:

Cannot complete the install because of a conflicting dependency.
  Software being installed: Equinox p2 RCP Management Facilities Source 1.2.0.v20130604-2046 (org.eclipse.equinox.p2.rcp.feature.source.feature.group 1.2.0.v20130604-2046)
  Software currently installed: Eclipse Platform 3.7.0.I20110613-1736 (org.eclipse.platform.ide 3.7.0.I20110613-1736)
  Only one of the following can be installed at once: 
    Simple Configurator Manipulator 2.0.0.v20130327-2119 (org.eclipse.equinox.simpleconfigurator.manipulator 2.0.0.v20130327-2119)
    Simple Configurator Manipulator 2.0.0.dist (org.eclipse.equinox.simpleconfigurator.manipulator 2.0.0.dist)
  Cannot satisfy dependency:
    From: Equinox p2 Core Function 1.0.1.dist-8291FXcFLhV8CJ871602A41 (org.eclipse.equinox.p2.core.feature.feature.group 1.0.1.dist-8291FXcFLhV8CJ871602A41)
    To: org.eclipse.equinox.simpleconfigurator.manipulator [2.0.0.dist]
  Cannot satisfy dependency:
    From: Equinox p2 Core Function 1.2.0.v20130604-2046 (org.eclipse.equinox.p2.core.feature.feature.group 1.2.0.v20130604-2046)
    To: org.eclipse.equinox.simpleconfigurator.manipulator [2.0.0.v20130327-2119]
  Cannot satisfy dependency:
    From: Equinox p2 RCP Management Facilities 1.2.0.v20130604-2046 (org.eclipse.equinox.p2.rcp.feature.feature.group 1.2.0.v20130604-2046)
    To: org.eclipse.equinox.p2.core.feature.feature.group [1.2.0.v20130604-2046]
  Cannot satisfy dependency:
    From: Equinox p2 RCP Management Facilities Source 1.2.0.v20130604-2046 (org.eclipse.equinox.p2.rcp.feature.source.feature.group 1.2.0.v20130604-2046)
    To: org.eclipse.equinox.p2.rcp.feature.feature.group [1.2.0.v20130604-2046]
  Cannot satisfy dependency:
    From: Equinox p2 Provisioning for IDEs. 2.1.2.dist-6-Bk8lt6MLqLsEf6-RFpFIpRdhQG (org.eclipse.equinox.p2.user.ui.feature.group 2.1.2.dist-6-Bk8lt6MLqLsEf6-RFpFIpRdhQG)
    To: org.eclipse.equinox.p2.core.feature.feature.group [1.0.1.dist-8291FXcFLhV8CJ871602A41]
  Cannot satisfy dependency:
    From: Eclipse Platform 3.7.0.I20110613-1736 (org.eclipse.platform.ide 3.7.0.I20110613-1736)
    To: org.eclipse.equinox.p2.user.ui.feature.group [2.1.2.dist-6-Bk8lt6MLqLsEf6-RFpFIpRdhQG]

如何解决这个问题并安装 Maven 插件?

【问题讨论】:

  • 这是完整的错误信息吗?我本来希望看到至少一个无法加载的插件。
  • @Calon 这都是信息。你能解释一下为什么会这样吗?
  • 你为什么要安装这么旧的 Eclipse 版本?为什么不使用开普勒?除此之外,如果您访问您提到的站点,您将看到有关移动站点的消息,现在是:archive.eclipse.org/technology/m2e/releases
  • @khmarbaise 是否能解决问题?如何更新eclipse版本?
  • @nazar_art 只需从 eclipse.org 下载 Eclipse。

标签: eclipse maven ubuntu


【解决方案1】:

尝试在安装管理器中设置“联系所有更新站点...”选项,并确保选中 Indigo (http://download.eclipse.org/releases/indigo) 的下载站点。

这应该是包含您的 m2e 安装的更新站点,因为您使用的下载站点包含最新构建的 maven,不是 3.7.2。

如果您想使用更新的 Eclipse,请使用带有更新站点 http://download.eclipse.org/releases/kepler 的 KEpler。

如果这不起作用,请发布新错误。

【讨论】:

  • 我按照你的建议做了,确实发现了错误。我更新了问题。我们该如何解决这个问题?
  • 如果您仍在 Indigo 上运行,Kepler 更新站点将无法运行。您是否使用单独使用的本地安装?请再次检查您使用的 IDE 版本,并确认您的更新站点与该版本匹配。您可能想下载一个全新的 Kepler 版本的 Eclipse 并测试您是否可以在其中安装 maven。如果它有效,那么你离问题更近了一步。
猜你喜欢
  • 1970-01-01
  • 2016-03-01
  • 2012-09-23
  • 2013-10-20
  • 2013-11-22
  • 2012-10-23
  • 1970-01-01
  • 2012-04-26
  • 1970-01-01
相关资源
最近更新 更多