Maven for Eclipse (M2E) 安装错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/18934503/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 21:12:01  来源:igfitidea点击:

Maven for Eclipse (M2E) Installation error

eclipsemaveneclipse-pluginm2eclipsem2e

提问by Maruthi Ram

Error Details:

错误详情:

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) Missing requirement: Maven Integration for Eclipse (Editors) 1.4.0.20130601-0317 (org.eclipse.m2e.editor 1.4.0.20130601-0317) requires 'bundle org.slf4j.api 1.6.2' but it could not be found Cannot satisfy dependency: From: m2e - Maven Integration for Eclipse 1.4.0.20130601-0317 (org.eclipse.m2e.feature.feature.group 1.4.0.20130601-0317) To: org.eclipse.m2e.editor [1.4.0.20130601-0317]`

无法完成安装,因为找不到一个或多个必需的项目。正在安装的软件:m2e - Eclipse 的 Maven 集成 1.4.0.20130601-0317 (org.eclipse.m2e.feature.feature.group 1.4.0.20130601-0317) 缺少要求:Eclipse 的 Maven 集成(编辑器)1.4.0.201030601 .eclipse.m2e.editor 1.4.0.20130601-0317) 需要 'bundle org.slf4j.api 1.6.2' 但找不到它不能满足依赖:来自:m2e - Eclipse 1.4.0.20130601-0317 (org. eclipse.m2e.feature.feature.group 1.4.0.20130601-0317) 至:org.eclipse.m2e.editor [1.4.0.20130601-0317]`

Getting the above mentioned error when installing M2E in Eclipse. The M2E URL that I used is http://download.eclipse.org/technology/m2e/releases

在 Eclipse 中安装 M2E 时出现上述错误。我使用的 M2E URL 是 http://download.eclipse.org/technology/m2e/releases

回答by HDave

As of late 2011, the M2Eclipse project was donated to the Eclipse foundation by Sonatype and is now called simply M2E. As of the Indigo JEE SR2 release, this plugin can be found in the pre-configured "Indigo" update site contained inside Eclipse, so you don't have to add any new update site.

到 2011 年底,Sonatype 将 M2Eclipse 项目捐赠给了 Eclipse 基金会,现在简称为 M2E。从 Indigo JEE SR2 版本开始,可以在 Eclipse 中包含的预先配置的“Indigo”更新站点中找到该插件,因此您不必添加任何新的更新站点

To install, do the following:

要安装,请执行以下操作:

  • Launch Eclipse; select the Help->Install New Software menu item.
  • Select the "Indigo" update site and wait for the software choices to pop up in the table in the lower portion of this "Install" dialog (it can take up to a minute).
  • In the table, select "General Purpose Tools" and then "M2E - Maven Integration for Eclipse", click Next and finish the installation of the plugin.
  • Restart Eclipse as directed.
  • 启动日食;选择帮助->安装新软件菜单项。
  • 选择“Indigo”更新站点并等待软件选择在此“安装”对话框下方的表格中弹出(最多可能需要一分钟)。
  • 在表格中选择“通用工具”,然后选择“M2E - Maven Integration for Eclipse”,点击下一步,完成插件的安装。
  • 按照指示重新启动 Eclipse。

回答by Snehal Masne

Sometimes, for older Eclipse, like Helios, version 1.5 or 1.4 throws similar error. You can try with 1.3 in that case :

有时,对于较旧的 Eclipse,例如 Helios,1.5 或 1.4 版会引发类似错误。在这种情况下,您可以尝试使用 1.3:

http://download.eclipse.org/technology/m2e/releases/1.3