【问题标题】:m2e extension is not installing in Eclipse Lunam2e 扩展未安装在 Eclipse Luna 中
【发布时间】:2015-10-20 01:01:45
【问题描述】:

当我安装 m2e 扩展时,它给了我以下错误:

我使用这个网址下载:http://download.eclipse.org/technology/m2e/releases

Cannot complete the install because one or more required items could not be found.
  Software being installed: m2e - Maven Integration for Eclipse (includes Incubating components) 1.6.1.20150625-2338 (org.eclipse.m2e.feature.feature.group 1.6.1.20150625-2338)
  Missing requirement: Maven Integration for Eclipse 1.6.0.20150526-2032 (org.eclipse.m2e.core 1.6.0.20150526-2032) requires 'bundle com.google.guava [14.0.1,16.0.0)' but it could not be found
  Missing requirement: Maven Integration for Eclipse 1.6.1.20150625-2338 (org.eclipse.m2e.core 1.6.1.20150625-2338) requires 'bundle com.google.guava [14.0.1,16.0.0)' but it could not be found
  Cannot satisfy dependency:
    From: m2e Marketplace 1.6.1.20150625-2338 (org.eclipse.m2e.discovery 1.6.1.20150625-2338)
    To: bundle org.eclipse.m2e.core [1.6.0,1.7.0)
  Cannot satisfy dependency:
    From: m2e - Maven Integration for Eclipse (includes Incubating components) 1.6.1.20150625-2338 (org.eclipse.m2e.feature.feature.group 1.6.1.20150625-2338)
    To: org.eclipse.m2e.discovery [1.6.1.20150625-2338]

【问题讨论】:

  • 您是否费心阅读错误输出? requires 'bundle com.google.guava [14.0.1,16.0.0)' but it could not be found你的 Eclipse 中有这个库吗?

标签: eclipse maven-plugin m2eclipse m2e


【解决方案1】:

尝试使用以下链接: http://download.eclipse.org/technology/m2e/releases/1.4

您可能正在使用旧版本的 eclipse 并尝试安装最新版本的 maven。

【讨论】:

  • m2e 1.4.x 与 Luna 版本不兼容。如果您查看“Java 开发人员的 Eclipse IDE”包列表,它包括 m2e 1.5.1 和 Orbit Guava:Google Core Libraries for Java 15.0。此外,如果您实际将 m2e 1.4.1 安装到 Luna 版本中,则会在存储库索引期间发生名为 BasicLocation 的类的 ClassDefNotFoundException。请参阅我对这个问题的回答以获取替代方案。
【解决方案2】:

在将 m2e 1.6.2 安装到 Eclipse 4.2.2 (Luna SR2) 时,对我有用的是将 Orbit 项目 Guava: Google Core Libraries for Java 15.0 捆绑包从 Orbit 项目添加到 Eclipse 在安装 m2e 之前。

(我最初收到的安装错误是 m2e 1.6.2 正在寻找 Guava 14 捆绑包,我无法在任何推荐的 Orbit 构建中找到它,但 Guava 15 到目前为止似乎工作得很好,而且确实Luna SR2 Eclipse IDE for Java Developers 使用 Guava 15 包。)

我将这个 URL 用于 Luna SR2 的 Orbit 构建存储库:http://download.eclipse.org/tools/orbit/downloads/drops/R20150124073747/repository/

此特定链接可能会随着时间的推移而不稳定,或者您正在阅读此链接是因为不同版本的 Eclipse 或 m2e 存在问题,因此在这些情况下,最好检查 Orbit downloads 页面以找到正确的链接Orbit 构建以匹配您的 Eclipse 版本。

对于那些不是 Eclipse 的老手,这里是我将 Orbit Guava 包安装到 Eclipse 4.4.2 中的逐步操作:

从 Eclipse 菜单:帮助 > 安装新软件...

一旦将此存储库添加到您的 Eclipse 配置中,m2e 功能安装过程将能够自动查找并安装 Guava 包。

m2e 安装可能还需要更新其他软件包,因此最好在安装 m2e 功能之前让 Eclipse Luna 更新站点可用:

还值得注意的是,m2e 1.6.x 版本包含在 Mars 中,而 1.5.x 包含在 Luna 中,因此使用 1.5 版本而不是 1.6 版本可能是更保守的选择。

【讨论】:

    【解决方案3】:

    我可以给你一个快速的答案:忽略错误。

    实际上我不太确定这是正确的解决方案,但至少对我来说它工作得很好。我正在分享我的案例,因为它可能会对某人有所帮助。

    在安装 m2e 扩展程序时,我遇到了与您遇到的相同的错误消息。但我忽略了错误并能够继续安装。然后就安装成功了。

    点击查看图片 :Install Remadiation Page

    当我单击“显示原始错误...”时,我看到了错误。但我觉得选择“保持我的安装...”并点击“下一步”继续

    【讨论】:

    • 这不是一个解决方案。安装 eclipse 插件错误有不同的原因。就在这里-incubating components。以后使用时间出现冲突。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-06-25
    • 2015-01-05
    • 2018-06-29
    • 1970-01-01
    • 2015-08-10
    • 2014-08-18
    • 2014-11-05
    相关资源
    最近更新 更多