如何在 64 位 linux 上为 Eclipse 安装 Maven 2 插件?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1112338/
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
How to install Maven 2 plugin for Eclipse on 64-bit linux?
提问by Cuga
I have Fedora 11 (x86 64) installed with Eclipse. I need a Maven plugin, preferrably m2eclipse, but I cannot find out how to install it. I've tried going through yum, but to no avail (I can't even find any maven plugins).
我在 Eclipse 中安装了 Fedora 11 (x86 64)。我需要一个 Maven 插件,最好是 m2eclipse,但我不知道如何安装它。我试过通过 yum,但无济于事(我什至找不到任何 maven 插件)。
On my other laptop, I've tried installing the plugin using yum on a 32 bit install of Fedora 11, and while the package shows as being installed, I still don't see it in Eclipse. I've even tried starting eclipse with the clean flag.
在我的另一台笔记本电脑上,我尝试在 Fedora 11 的 32 位安装上使用 yum 安装插件,虽然该包显示为已安装,但我仍然没有在 Eclipse 中看到它。我什至尝试用干净的标志启动日食。
Could anyone provide me with help? I've got maven 2.0.4 installed. Thanks in advance!
任何人都可以为我提供帮助吗?我已经安装了 Maven 2.0.4。提前致谢!
回答by Cuga
I was able to install the core components of the m2eclipse plugin after I first installed the ganymede packages from their update site: http://download.eclipse.org/releases/ganymede/
在我第一次从他们的更新站点安装了 ganymede 包之后,我能够安装 m2eclipse 插件的核心组件:http: //download.eclipse.org/releases/ganymede/
Apparently "Fedora Eclipse" is not a flavor of the ganymede build.
显然“Fedora Eclipse”不是ganymede 构建的风格。
回答by Hank Gay
Use the following update site: http://m2eclipse.sonatype.org/update/
使用以下更新站点:http: //m2eclipse.sonatype.org/update/
It's typically under Help
-> Software Updates…
and then you can add a new update site. Use the one above and you should have the option to install the plugin.
它通常在Help
-> 下Software Updates…
,然后您可以添加新的更新站点。使用上面的一个,你应该可以选择安装插件。
回答by Helper
Goto Eclipse->Help->Install New Software...
转到 Eclipse->帮助->安装新软件...
Add the following update site in Eclipse http://m2eclipse.sonatype.org/sites/m2eand enable the repository for your release of eclipse under "Available Software Sites" as well (which is disabled in Fedora by default).
在 Eclipse http://m2eclipse.sonatype.org/sites/m2e 中添加以下更新站点, 并在“可用软件站点”下为您的 eclipse 版本启用存储库(默认情况下在 Fedora 中禁用)。
Afterwards the installation in Eclipse should work without any missing dependencies.
之后 Eclipse 中的安装应该可以正常工作,不会丢失任何依赖项。
回答by lifeless
I was hitting the same problem; evlipse installs it but the plugin isn't visible in the list nor are any of the features it should offer (such as a maven import wizard).
我遇到了同样的问题;evlipse 安装了它,但该插件在列表中不可见,也没有它应该提供的任何功能(例如 maven 导入向导)。
java 6, ubuntu, eclipse downloaded from the official site.
java 6, ubuntu, eclipse 从官网下载。
I removed ~/.eclipse/org.eclipse.platform_3.5.0_1020258342 Started eclipse again added the EMF update site added the IAM site installed eclipse IAM core, said no to resarting the workspace, quit eclipse started eclipse
我删除了~/.eclipse/org.eclipse.platform_3.5.0_1020258342 Started eclipse 再次添加EMF更新站点添加了IAM站点安装了eclipse IAM core,说no要重新启动工作区,退出eclipse开始eclipse
and its working.
及其工作。