Java 为 Eclipse 安装 Maven 集成时出错
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4297533/
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
Error while installing Maven Integration for Eclipse
提问by Pale Blue Dot
I'm trying to install Maven integration for Eclipse (Galileo) through Install New Software
menu nad using the sonatype link
我正在尝试Install New Software
使用 sonatype 链接通过菜单 nad为 Eclipse (Galileo) 安装 Maven 集成
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
无法完成安装,因为找不到一个或多个必需的项目。
正在安装的软件:Eclipse 的 Maven 集成(必需)0.12.0.20101115-1102(org.maven.ide.eclipse.feature.feature.group 0.12.0.20101115-1102)
缺少要求:Eclipse 的 Maven 集成(必需)0.12.0.1501 1102
(org.maven.ide.eclipse.feature.feature.group 0.12.0.20101115-1102) 需要 'org.eclipse.emf.ecore.edit 0.0.0' 但找不到
Tried to search for the missing bundle. But no success. :(
试图搜索丢失的包。但没有成功。:(
Any help?
有什么帮助吗?
采纳答案by Andrew Eisenberg
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.
在您的安装管理器中,选中“联系所有更新站点...”并重试。由于 EMF 来自与 M2Eclipse 不同的更新站点,因此如果无法检查所有更新站点是否有所需组件,则无法安装 M2Eclipse。
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:
从 Eclipse 3.7 (Indigo) 开始,m2e 现在托管在 eclipse.org。要安装它,您只需要使用默认的 Eclipse 更新站点:
回答by jan groth
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.
我有同样的问题(顺便说一句,“联系所有更新站点”是默认的)。我在 eclipse bugzilla 中发现了这个错误报告,这表明我们在插件本身中遇到了问题。
https://bugs.eclipse.org/bugs/show_bug.cgi?id=330896
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:
对我来说,一种解决方法是回退到旧版本的 m2eclipse / m2eclipse extras / 颠覆性集成。我使用了以下网址:
回答by deuberger
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.
您在使用 Eclipse CDT 吗?如果是这样,您需要确保还安装了 Java 开发工具。假设您正在使用 Helios,请使用http://download.eclipse.org/releases/helios/作为更新站点并从“Programming Languages”下的功能列表中安装 JDT 工具。我遇到了同样的问题,这为我解决了。
回答by Reda
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".
为了在 helios 上安装新的 m2e (1.4),我必须卸载 eclipse 中的所有 maven 元素,然后,我可以从http://download.eclipse.org/technology/m2e/releases安装 m2e ”。
Steps to uninstall existing maven elements ( from org.maven.ide.*) :
卸载现有 maven 元素的步骤(来自 org.maven.ide.*):
- Click in Help in eclipse
- Install New Software...
- Click on What is already installed
- Select all item from org.maven.ide.* (even if it's Required)
- uninstall them all
- 在 Eclipse 中单击“帮助”
- 安装新软件...
- 单击已安装的内容
- 从 org.maven.ide.* 中选择所有项目(即使它是必需的)
- 全部卸载
回答by Kishor
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:
从 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.
Hence, for getting maven in eclipse indigo please refer the answer highlighted in yellow color alongwith screenshot at below link
因此,要在 eclipse indigo 中获取 maven,请参考以下链接中以黄色突出显示的答案以及屏幕截图
回答by Prabagar g
Another way of installing the Maven plug-in for Eclipse:
另一种为Eclipse安装Maven插件的方法:
- 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
- 打开日食
- 转到帮助 -> Eclipse Marketplace
- 按 Maven 搜索
- 单击“Eclipse Maven 集成”部分的“安装”按钮
- 按照说明一步一步来
- 安装成功后,在 Eclipse 中执行以下操作:
- 转到窗口 -> 首选项
- 观察,Maven 在左侧面板上登记
- 单击现有项目
- 选择配置 -> 转换为 Maven 项目
回答by Garun Kumar Mishra
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).
确保在安装期间选中联系所有更新站点以查找请求软件,然后通过 logback 日志记录(可选)单击安装 Maven 集成 for Eclipse 和 m2e-slf4j 的下一步。
i was facing same problem, right now it has solve by doing the above. Hope this will helpful.
我遇到了同样的问题,现在通过执行上述操作已经解决了。希望这会有所帮助。
回答by Hermenegildo Inacio Nhacuonga
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
大多数eclipse不支持maven 3.5 iven 1.8。要安装maven,你必须去halp--install new software Name:M2Eclipse 位置:http: //download.eclipse.org/technology/m2e/releases/1.4
for helios: http://download.eclipse.org/technology/m2e/releases/1.3
对于太阳神:http: //download.eclipse.org/technology/m2e/releases/1.3