安装 Eclipse 的 Maven 集成时出错

发布于 2024-10-05 13:43:58 字数 657 浏览 0 评论 0 原文

我正在尝试通过 Install New Software 菜单和使用 sonatype 链接来安装 Eclipse (Galileo) 的 Maven 集成

http://m2eclipse.sonatype.org/sites/m2e

并出现以下错误:

无法完成安装,因为找不到一个或多个必需的项目。
正在安装的软件:Maven Integration for Eclipse(必需)0.12.0.20101115-1102(org.maven.ide.eclipse.feature.feature.group 0.12.0.20101115-1102)
缺少要求:Eclipse 的 Maven 集成(必需)0.12.0.20101115-1102
(org.maven.ide.eclipse.feature.feature.group 0.12.0.20101115-1102)需要“org.eclipse.emf.ecore.edit 0.0.0”,但找不到

尝试搜索丢失的包。但没有成功。 :(

有什么帮助吗?

I'm trying to install Maven integration for Eclipse (Galileo) through Install New Software menu nad using the sonatype link

http://m2eclipse.sonatype.org/sites/m2e

And getting following error:

Cannot complete the install because one or more required items could not be found.
Software being installed: Maven Integration for Eclipse (Required) 0.12.0.20101115-1102 (org.maven.ide.eclipse.feature.feature.group 0.12.0.20101115-1102)
Missing requirement: Maven Integration for Eclipse (Required) 0.12.0.20101115-1102
(org.maven.ide.eclipse.feature.feature.group 0.12.0.20101115-1102) requires 'org.eclipse.emf.ecore.edit 0.0.0' but it could not be found

Tried to search for the missing bundle. But no success. :(

Any help?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(8

蓝咒 2024-10-12 13:43:59

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

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

  1. 单击 eclipse 中的“帮助”。
  2. 安装新软件...
  3. 单击已安装的内容
  4. 从 org.maven.ide.* 中选择所有项目(即使是必需的)
  5. 将其全部卸载

In order to install the new m2e (1.4) on helios, i had to uninstall all maven elements in eclipse and then, i could install m2e from http://download.eclipse.org/technology/m2e/releases".

Steps to uninstall existing maven elements ( from org.maven.ide.*) :

  1. Click in Help in eclipse
  2. Install New Software...
  3. Click on What is already installed
  4. Select all item from org.maven.ide.* (even if it's Required)
  5. uninstall them all
挽容 2024-10-12 13:43:59

另一种为Eclipse安装Maven插件的方式:

  • 打开Eclipse
  • 进入Help -> Eclipse Marketplace
  • 通过 Maven 搜索
  • 单击“Maven Integration for Eclipse”部分的“安装”按钮
  • 按照说明逐步操作
  • 成功安装后,在 Eclipse 中执行以下操作:
    • 转到窗口 ->偏好设置
    • 观察,Maven 已在左侧面板中列出
    • 点击现有项目
    • 选择配置 ->转换为 Maven 项目

Another way of installing the Maven plug-in for Eclipse:

  • Open Eclipse
  • Go to Help -> Eclipse Marketplace
  • Search by Maven
  • Click "Install" button at "Maven Integration for Eclipse" section
  • Follow the instruction step by step
  • After successful installation do the followings in Eclipse:
    • Go to Window -> Preferences
    • Observe, Maven is enlisted at left panel
    • Click on an existing project
    • Select Configure -> Convert to Maven Project
全部不再 2024-10-12 13:43:59

确保在安装过程中选中联系所有更新站点以查找请求的软件,然后单击“Maven Integration for Eclipse & Maven Integration”安装的下一步。 m2e-slf4j 通过 logback 日志记录(可选)。

我遇到了同样的问题,现在已经通过执行上述操作解决了。
希望这会有所帮助。

Make sure that you checkmark contact all update sites during install to find request software before click to next of the installation of Maven Integration for Eclipse & m2e-slf4j over logback logging (Optional).

i was facing same problem, right now it has solve by doing the above.
Hope this will helpful.

只是一片海 2024-10-12 13:43:58

在安装管理器中,选中“联系所有更新站点...”,然后重试。由于 EMF 来自与 M2Eclipse 不同的更新站点,因此如果无法检查所有更新站点中所需组件,则无法安装 M2Eclipse。


更新!

从 Eclipse 3.7 (Indigo) 开始,m2e 现在托管在 eclipse.org 上。要安装它,您只需使用默认的 Eclipse 更新站点:

In your install manager, check "Contact all updates sites..." and try again. Since EMF comes from a different update site than M2Eclipse, M2Eclipse cannot be installed without the ability to check all update sites for required components.


UPDATE!

Since Eclipse 3.7 (Indigo), m2e is now hosted at eclipse.org. To install it, you just need to use the default Eclipse update site:

羁拥 2024-10-12 13:43:58

您正在使用 Eclipse CDT 吗?如果是这样,您需要确保还安装了 Java 开发工具。假设您使用的是 Helios,请使用 http://download.eclipse.org/releases/helios/ 作为更新站点并从“编程语言”下的功能列表中安装 JDT 工具。我遇到了同样的问题,这为我解决了。

Are you using Eclipse CDT? If so, you need to make sure you have the Java Development Tools installed as well. Assuming you're using Helios, use http://download.eclipse.org/releases/helios/ as an update site and install the JDT tools from the list of features under "Programming Languages". I had the same problem and that solved it for me.

我早已燃尽 2024-10-12 13:43:58

从 Eclipse 3.7 (Indigo) 开始,m2e 现在托管在 eclipse.org 上。要安装它,您只需要使用默认的 Eclipse 更新站点:

http://download.eclipse.org/releases/kepler
http://download.eclipse.org/releases/juno
http://download.eclipse.org/releases/indigo
etc.

因此,要在 eclipse indigo 中获取 Maven,请参考下面链接中以黄色突出显示的答案以及屏幕截图

eclipse indigo market Maven 集成安装错误

Since Eclipse 3.7 (Indigo), m2e is now hosted at eclipse.org. To install it, you just need to use the default Eclipse update site:

http://download.eclipse.org/releases/kepler
http://download.eclipse.org/releases/juno
http://download.eclipse.org/releases/indigo
etc.

Hence, for getting maven in eclipse indigo please refer the answer highlighted in yellow color alongwith screenshot at below link

eclipse indigo marketplace Maven Integration install error

南街九尾狐 2024-10-12 13:43:58

我有同样的问题(顺便说一句,“联系所有更新站点”是默认设置)。我在 eclipse bugzilla 中发现了这个错误报告,这表明我们的插件本身存在问题。

https://bugs.eclipse.org/bugs/show_bug.cgi?id=330896

对我来说,一个解决方法是回退到旧版本的 m2eclipse / m2eclipse extras / 颠覆性集成。我使用了以下 URL:

I have the same issue (btw, "contact all update sites" is default). I found this bugreport in eclipse bugzilla which kind of indicates that we are having an issue in the plugin itself.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=330896

A workaround for me is to fall back to older versions of m2eclipse / m2eclipse extras / subversive integration. I used the following URLs:

时常饿 2024-10-12 13:43:58

大多数eclipse不支持maven 3.5 iven 1.8。要安装maven,你必须去halp--安装新软件
名称:M2Eclipse
位置: http://download.eclipse.org/technology/m2e/releases/1.4< /a>

对于 helios: http://download.eclipse.org/technology/m2e/发布/1.3

the majority of eclipse does not suport maven 3.5 iven 1.8. to install maven you must go to halp--install new software
Name:M2Eclipse
location: http://download.eclipse.org/technology/m2e/releases/1.4

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文