无法为 Eclipse 安装 Maven 插件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/18183241/
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:03:31  来源:igfitidea点击:

Unable to install Maven plugin for Eclipse

eclipsemavenubuntu-12.04

提问by wrahool

I'm working on Eclipse 3.7 (indigo) on Ubuntu 12.04 LTS, and I am trying to install the Maven plugin.

我正在 Ubuntu 12.04 LTS 上使用 Eclipse 3.7 (indigo),我正在尝试安装 Maven 插件。

Following thispage, I added http://download.eclipse.org/technology/m2e/releasesto the Eclipse Install new software prompt box. It recognised the URL and showed "Maven Integration for Eclipse"

页面之后,我将http://download.eclipse.org/technology/m2e/releases添加到 Eclipse 安装新软件提示框。它识别出 URL 并显示“Maven Integration for Eclipse”

But when I click on Next, it gives this error.

但是当我点击下一步时,它给出了这个错误。

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]

What should I do? Please help.

我该怎么办?请帮忙。

回答by Mircea M

Use the following URL in the "Install New Software" as a repository instead: http://download.eclipse.org/technology/m2e/releases/1.3. I tried it and it works, no more errors.

使用“安装新软件”中的以下 URL 作为存储库:http: //download.eclipse.org/technology/m2e/releases/1.3。我试过了,它有效,没有更多错误。

回答by Sachin Singh

In Eclipse market place use this URL:- http://download.eclipse.org/technology/m2e/releases/1.3/

在 Eclipse 市场中使用此 URL:- http://download.eclipse.org/technology/m2e/releases/1.3/

It will install the maven plugin on eclipse successfully without any error.

它将在eclipse上成功安装maven插件,没有任何错误。

回答by GAURAV KUMAR GUPTA

this is the big problem of eclipse because mostly eclipse support other Maven

这是 eclipse 的大问题,因为大部分 eclipse 支持其他 Maven

this is plugins for eclipse heilios only

这是仅适用于 eclipse heilios 的插件

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

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

回答by saurav

It seems like somehow it is not able to download the slf4jrelated artifacts , for now you can unselect the checkbox while installing maven plugin .

它似乎以某种方式无法下载slf4j相关的工件,现在您可以在安装 maven 插件时取消选中该复选框。

Please see the attached image.

请参阅所附图片。

enter image description here

在此处输入图片说明

If it also don't work then manually download the plugin and drop it in eclipse plugins folder.

如果它也不起作用,则手动下载插件并将其放入 eclipse plugins 文件夹中。