错误:在 Eclipse 中安装 m2e

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

Error: m2e Install In Eclipse

eclipsejakarta-eem2e

提问by Rachel_Franz

I've been attempting to install Maven Integration for Eclipse and I've received these errors.

我一直在尝试为 Eclipse 安装 Maven 集成,但收到了这些错误。

    Cannot complete the install because one or more required items could not be found.
  Software being installed: m2e - slf4j over logback logging (Optional) 1.4.0.20130601-0317 (org.eclipse.m2e.logback.feature.feature.group 1.4.0.20130601-0317)
  Missing requirement: Maven Integration for Eclipse 1.4.0.20130601-0317 (org.eclipse.m2e.core.ui 1.4.0.20130601-0317) requires 'bundle org.slf4j.api 1.6.2' but it could not be found
  Cannot satisfy dependency:
    From: m2e logback appender 1.4.0.20130601-0317 (org.eclipse.m2e.logback.appender 1.4.0.20130601-0317)
    To: bundle org.eclipse.m2e.core.ui [1.4.0,1.5.0)
  Cannot satisfy dependency:
    From: m2e - slf4j over logback logging (Optional) 1.4.0.20130601-0317 (org.eclipse.m2e.logback.feature.feature.group 1.4.0.20130601-0317)
    To: org.eclipse.m2e.logback.appender [1.4.0.20130601-0317]

My process has been Help >> EclipseMarketplace >> Search "Maven Integration for Eclipse" >> Install (m2e)

我的过程是 Help >> EclipseMarketplace >> Search "Maven Integration for Eclipse" >> Install (m2e)

Please help.

请帮忙。

Edit

编辑

After running into a plethora of issues, the decision was made to uninstall Eclipse Indigo 3.6.2 and install Indigo 3.7 (as per the standards of the company I currently work at). After taking this course of action, all issues with installations (maven and otherwise) were resolved.

在遇到大量问题后,决定卸载 Eclipse Indigo 3.6.2 并安装 Indigo 3.7(按照我目前工作的公司的标准)。采取此措施后,所有安装问题(maven 和其他)均已解决。

回答by Lasse Christiansen

I ran into a similar issue today and found that this question also has recently been asked and answered at the atlassian forumas well. My solution was to install slf4j based on guidelines from this blog postabout "SLF4J Logging in Eclipse Plugins".

我今天遇到了一个类似的问题,发现这个问题最近也在atlassian 论坛上被提出和回答。我的解决方案是根据这篇关于“Eclipse 插件中的 SLF4J 日志记录”的博客文章中的指南安装 slf4j 。

To extract, here is what I did:

要提取,这是我所做的:

  1. Eclipse -> Help -> Install New Software
  2. Add a new software site:
  3. Expand "Maven osgi-bundles" and select "slf4j-api"
  4. Click "Next" and follow the installation.
  1. Eclipse -> 帮助 -> 安装新软件
  2. 添加新的软件站点:
  3. 展开“Maven osgi-bundles”并选择“slf4j-api”
  4. 单击“下一步”并按照安装进行操作。

After the installation has completed (and Eclipse has been restarted) I was then able to install the maven plugin.

安装完成(并且 Eclipse 已重新启动)后,我就可以安装 maven 插件了。

UPDATE:

更新:

Some of the other answers in this thread now contain links to offical package repositories. I haven't tested if they are working, but if you would prefer to use an official repository, now you know where to find them :)

此线程中的其他一些答案现在包含指向官方软件包存储库的链接。我还没有测试它们是否正常工作,但是如果您更喜欢使用官方存储库,现在您知道在哪里可以找到它们:)

回答by SashikaXP

Use the software update site as http://download.eclipse.org/technology/m2e/releases/1.0That worked for me and got away with the exact same error message.

使用软件更新站点作为http://download.eclipse.org/technology/m2e/releases/1.0这对我有用并且得到了完全相同的错误消息。

回答by Alix Lourme

Plugin team has created a fix for m2e 1.4 & Eclipse Indigo (with this precision : Indigo is no longer officially supported for m2e) :

插件团队为 m2e 1.4 和 Eclipse Indigo 创建了一个修复程序(具有这种精度:m2e 不再正式支持 Indigo):

P2 repository : http://download.eclipse.org/technology/m2e/releases-for-indigo/1.4/

P2 存储库:http: //download.eclipse.org/technology/m2e/releases-for-indigo/1.4/

Reference : m2e-users mailing list

参考:m2e-users 邮件列表

回答by Bryan

Using Helios, and I used this repository to download Maven Integration For Eclipse with no problems.

使用 Helios,我使用这个存储库下载 Maven Integration For Eclipse,没有任何问题。

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

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

回答by Do Tat Hoan

That mean the folder eclipse/plugins missing "org.slf4j.api_1.6.4.v20120130-2120.jar", so you need copy the file to eclipse/plugins!

这意味着文件夹 eclipse/plugins 缺少“org.slf4j.api_1.6.4.v20120130-2120.jar”,因此您需要将文件复制到 eclipse/plugins!

回答by user3166249

Ubuntu 13.04, Eclipse 3.8.1. For Step 3 all I had to do was add the main juno download site: http://download.eclipse.org/releases/junoand m2e can be installed from there.

Ubuntu 13.04,Eclipse 3.8.1。对于第 3 步,我所要做的就是添加主要的 juno 下载站点:http: //download.eclipse.org/releases/juno并且可以从那里安装 m2e。

回答by rajeesh

This is because maven 1.5 is not compatible with current eclipse version. So we need to use maven 1.4 or 1.3

这是因为 maven 1.5 与当前的 eclipse 版本不兼容。所以我们需要使用maven 1.4或者1.3

Steps to install maven 1.4 is below

安装 maven 1.4 的步骤如下

1)Click Help in eclipse

1)在eclipse中点击Help

2)Install New Software

2)安装新软件

3)Url for the location of site is "http://download.eclipse.org/technology/m2e/releases"

3)站点位置的Url是“ http://download.eclipse.org/technology/m2e/releases

4)Uncheck the checkbox "Show only the latest versions of available software" if do not uncheck the checkbox it will only latest version and do not show maven 1.4.

4)取消选中“仅显示可用软件的最新版本”复选框,如果不取消选中该复选框,它将仅显示最新版本而不显示 maven 1.4。

5)Select m2e and slf4j of 1.4 version and click next.

5)选择1.4版本的m2e和slf4j,点击下一步。

回答by Tyguy

If you're using eclipse Indigo -- It seems to be missing many files. If you download eclipse Kepler it seems to have the files that are lacking in Indigo. May suggest to switch.

如果您使用的是 eclipse Indigo——它似乎缺少许多文件。如果您下载 eclipse Kepler,它似乎包含 Indigo 中缺少的文件。可以建议换。

回答by aphex

You can find the org.slf4j.api 1.6.4/1.7.2 on the Orbit repository, which is more reliable than other third party repositories.

您可以在Orbit 存储库中找到 org.slf4j.api 1.6.4/1.7.2 ,它比其他第三方存储库更可靠。

回答by JoseAntonio1984

I had this problem with the latest version of eclipse Indigo64bit. I solved installing the latest version of eclipse Juno64bit.

我在最新版本的 eclipse Indigo64bit 上遇到了这个问题。我解决了安装最新版本的 eclipse Juno64bit。