Eclipse Indigo - 无法升级m2e

时间:2012-02-15 00:05:52

标签: eclipse eclipse-plugin m2eclipse

民间,

我正在尝试从更新站点升级“Maven Integration for Eclipse” - http://m2eclipse.sonatype.org/sites/m2e

当输入存储库站点时,Eclipse向我显示可供下载的最新版本为0.12.1.20110112-1712。但是,当我开始安装时,我收到有关现有依赖项的错误。以下是错误的前几行:

Cannot complete the install because of a conflicting dependency.
  Software being installed: Maven Integration for Eclipse (Required)    0.12.1.20110112-1712 (org.maven.ide.eclipse.feature.feature.group 0.12.1.20110112-1712)
  Software currently installed: Eclipse IDE for Java Developers 1.4.1.20110909-1818 (epp.package.java 1.4.1.20110909-1818)
  Only one of the following can be installed at once: 
    Maven Integration for Eclipse 0.12.1.20110112-1712 (org.maven.ide.eclipse 0.12.1.20110112-1712)
    Maven Integration for Eclipse 0.12.0.20101115-1102 (org.maven.ide.eclipse 0.12.0.20101115-1102)
    This version of m2eclipse cannot be installed on top of the already installed m2eclipse. Uninstall the previous version of m2eclipse and try the install again. 1.0.0.20110607-2117 (org.maven.ide.eclipse 1.0.0.20110607-2117)
    This version of m2eclipse cannot be installed on top of the already installed m2eclipse. Uninstall the previous version of m2eclipse and try the install again. 1.0.100.20110804-1717 (org.maven.ide.eclipse 1.0.100.20110804-1717)
...

确定。所以我需要先卸载我的旧版m2e。我转到帮助 - >关于 - >已安装的软件。我看到安装了以下两个m2e功能:

Eclipse IDE for Java Developers-->EPP Java Package-->m2e - Maven Integration for Eclipse 1.0.100...
Eclipse IDE for Java Developers-->EPP Java Package-->slf4j over logback logging 1.0.100...

问题是当我选择这两项中的任何一项时,“卸载”仍然被禁用。似乎卸载它的唯一方法是卸载父“Eclipse IDE for Java Developers”。

有人可以告诉我我必须做什么吗?

提前感谢您的帮助。

的问候,
彼得

5 个答案:

答案 0 :(得分:1)

如果您在RAD 8中遇到此问题,请按照此处的说明进行操作 https://www.ibm.com/developerworks/wikis/download/attachments/113607155/RAD_m2e-Nov.pdf?version=1

答案 1 :(得分:1)

我有同样的问题在Windows 7上运行Eclipse Indigo 64位。我没有看到像旧版eclipse中的下拉菜单中的m2选项,所以我认为有问题并尝试卸载它没有意识到它是内置于这个版本的。

这是一个很大的错误!我重新安装或升级m2eclipse的努力都失败了。

最后,我使用该链接阅读RAD的文档,以查看要使用的软件更新URL和Satya应答的文件。这是link

RAD显然足够接近,让我走上正轨。然后我发现了"篡改文件"的错误,结果与使用jdk 1.7有关。我发现here的解决方案是一个简单的解决方案,只需将已安装的jre更改为1.6,然后下一次m2eclipse插件的安装尝试就可以了。

我希望这些信息可以节省时间,如果他们遇到同样的问题并且不想重新安装eclipse。使用我的所有插件和配置,重做所有内容需要很长时间。

答案 2 :(得分:0)

我在尝试安装“ Eclipse Indigo 3.7.0 ”时遇到了问题(在 Ubuntu 11.10 的“Ubuntu软件中心”中)。< / p>

见下面的日志:

  

无法完成安装,因为一个或多个必需项目可以   找不到。正在安装的软件:m2e - Maven Integration for   Eclipse 1.0.100.20110804-1717(org.eclipse.m2e.feature.feature.group   1.0.100.20110804-1717)缺少要求:m2e - Eclipse的Maven集成1.0.100.20110804-1717   (org.eclipse.m2e.feature.feature.group 1.0.100.20110804-1717)要求   'org.eclipse.wst.xml.core 0.0.0'但无法找到

Maven 适用于“ Eclipse Indigo Service Release 1 ”。

Linux 64位下载“ Eclipse Indigo Service Release 1 ”镜像:http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/indigo/SR1/eclipse-jee-indigo-SR1-linux-gtk-x86_64.tar.gz

更多镜像:http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/indigosr2

仅供参考: MercurialEclipse 插件也适用于“ Eclipse Indigo Service Release 1 ”(使用“sudo apt-get”安装 hg 命令后在终端上安装mercurial。

答案 3 :(得分:0)

这是来自 Eclipse 版本的问题。下载并安装Eclipse for Java EE Developers。运行 Eclipse 帮助&gt; Eclipse Marketplace&gt;输入m2e并进行搜索。只需单击一下即可安装。

答案 4 :(得分:0)

为了在helios上安装新的m2e(1.4),我必须在eclipse中卸载所有maven元素然后,我可以从http://download.eclipse.org/technology/m2e/releases安装m2e。

卸载现有maven元素的步骤(来自org.maven.ide。*):

  1. 点击eclipse中的帮助
  2. 安装新软件......
  3. 点击已安装的内容
  4. 从org.maven.ide。中选择所有项目。*(即使它是必需的)
  5. 全部卸载
相关问题