Java 在Ubuntu的Eclipse3.8中安装maven

Java 在Ubuntu的Eclipse3.8中安装maven,java,eclipse,maven,ubuntu,Java,Eclipse,Maven,Ubuntu,我已经在Ubuntu中安装了“默认”Eclipse3.8。我想在上面安装Maven支持。我知道 1) 在eclipse中,转到“帮助->安装新软件” 2) 在打开的窗口中按右上角的“添加” 3) 将名称文本框设置为“Maven2Eclipse” 4) 将值文本框设置为 5) 按“确定”后,我出现以下错误: Cannot satisfy dependency: From: Maven Integration for Eclipse JDT UI 1.5.1.20150109-1820

我已经在Ubuntu中安装了“默认”Eclipse3.8。我想在上面安装Maven支持。我知道

1) 在eclipse中,转到“帮助->安装新软件”

2) 在打开的窗口中按右上角的“添加”

3) 将名称文本框设置为“Maven2Eclipse”

4) 将值文本框设置为

5) 按“确定”后,我出现以下错误:

  Cannot satisfy dependency:
    From: Maven Integration for Eclipse JDT UI 1.5.1.20150109-1820 (org.eclipse.m2e.jdt.ui 1.5.1.20150109-1820)



    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.5.1.20150109-1820 (org.eclipse.m2e.feature.feature.group 1.5.1.20150109-1820)
      Missing requirement: Maven Integration for Eclipse 1.5.0.20140606-0033 (org.eclipse.m2e.core 1.5.0.20140606-0033) requires 'bundle org.slf4j.api 1.6.2' but it could not be found
      Missing requirement: Maven Integration for Eclipse 1.5.1.20150109-1820 (org.eclipse.m2e.core 1.5.1.20150109-1820) requires 'bundle org.slf4j.api 1.6.2' but it could not be found
      Missing requirement: Maven Integration for Eclipse 1.5.2.20150413-2215 (org.eclipse.m2e.core 1.5.2.20150413-2215) requires 'bundle org.slf4j.api 1.6.2' but it could not be found
      Cannot satisfy dependency:
        From: m2e - Maven Integration for Eclipse (includes Incubating components) 1.5.1.20150109-1820 (org.eclipse.m2e.feature.feature.group 1.5.1.20150109-1820)
        To: org.eclipse.m2e.jdt.ui [1.5.1.20150109-1820]
      Cannot satisfy dependency:
        From: Maven Integration for Eclipse JDT UI 1.5.1.20150109-1820 (org.eclipse.m2e.jdt.ui 1.5.1.20150109-1820)
        To: bundle org.eclipse.m2e.core [1.5.0,1.6.0)

如何解决此问题?

听起来可能是版本问题

我在安装Maven(或SVN,或任何相关插件)时从来没有遇到过任何问题。。。但我手头没有朱诺的副本可以帮你再检查一遍

建议:

  • 确保您指向的是Eclipse3.8(并且只有3.8)存储库

  • 尝试使用该repo安装m2e

  • 增编:

    以下是我在Luna和CentOS Linux上所做的:

  • Eclipse>帮助>安装软件(不是“市场*)

  • 与>

  • 过滤文本>m2e,[输入]


  • m2e-Maven Integration=Y首先,我使用root权限运行eclipse以更新环境:eclipse>Help>Check for Updates。
    然后我可以像上面所说的那样安装maven,Eclipse>Help>install Software等等。

    我今天遇到了同样的错误

    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.8.1.20170728-1531 (org.eclipse.m2e.feature.feature.group 1.8.1.20170728-1531)
      Missing requirement: Maven Integration for Eclipse 1.8.1.20170728-1531 (org.eclipse.m2e.core 1.8.1.20170728-1531) requires 'bundle org.eclipse.osgi 3.10.0' but it could not be found
      Cannot satisfy dependency:
        From: Maven Integration for Eclipse 1.8.1.20170728-1531 (org.eclipse.m2e.core.ui 1.8.1.20170728-1531)
        To: bundle org.eclipse.m2e.core [1.8.1,1.9.0)
      Cannot satisfy dependency:
        From: m2e - Maven Integration for Eclipse (includes Incubating components) 1.8.1.20170728-1531 (org.eclipse.m2e.feature.feature.group 1.8.1.20170728-1531)
        To: org.eclipse.m2e.core.ui [1.8.1.20170728-1531]
    
    在花了很多时间后,我发现这是行不通的。 现在解决错误的步骤是, 打开Eclipse->帮助->安装新软件->添加
    。它应该可以解决您的问题。

    与您的问题相同,但它没有连接到第一个问题,或者(我想这是我的版本)告诉您“未找到任何软件…”。。。问:是否可以简单地安装一个更新的、当前版本的Eclipse?不同的Eclipse版本可以共存——您只需指向不同的工作区。问:你能从安装m2e的同一个地方显式安装m2e/slf4j吗?问:这方面运气好吗?