为 Eclipse 安装 Apache Maven 插件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7111483/
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
Installing Apache Maven Plugin for Eclipse
提问by Kris Schouw
I'm currently trying to download an Apache Maven plugin for Eclipse so I can migrate a project from Ant. I've read numerous tutorial sites on how to install this plugin, and most of them offer an update site. Unfortunately, my Eclipse is not finding any of the repositories that are supposedly at the URL's I've been given. Here are some of the one's I've tried:
我目前正在尝试为 Eclipse 下载一个 Apache Maven 插件,以便我可以从 Ant 迁移一个项目。我已经阅读了许多关于如何安装此插件的教程站点,其中大多数都提供了更新站点。不幸的是,我的 Eclipse 没有找到任何应该在我得到的 URL 中的存储库。以下是我尝试过的一些:
http://m2eclipse.sonatype.org/sites/m2e/
http://download.eclipse.org/technology/m2e/releases/
http://mevenide.codehaus.org/maven-eclipse-plugin-plugin/
Sadly, all of these haven't proven useful yet, so I'm starting to think that perhaps a certain setting is off or missing within Eclipse itself that is preventing it from finding these repositories. Sometimes, though, it tells me that it is simply unable to read a repository. For example, Eclipse spat out this error a few times when trying to use http://m2eclipse.sonatype.org/sites/m2e/:
遗憾的是,所有这些都还没有被证明有用,所以我开始认为 Eclipse 本身中的某个设置可能已关闭或缺失,从而阻止了它找到这些存储库。但是,有时它会告诉我它根本无法读取存储库。例如,Eclipse 在尝试使用http://m2eclipse.sonatype.org/sites/m2e/时多次出现此错误:
Unable to read repository at http://m2eclipse.sonatype.org/sites/m2e/content.xml.
When this happens, it seems as though its "finding" the repository, but it just can't read it... As I've said, I've followed a handful of instructions to downloading the plugin, and none have worked thanks to this initial step. Any ideas?
发生这种情况时,它似乎“找到”了存储库,但它无法读取它......正如我所说,我已经按照一些说明下载了插件,但没有一个成功,谢谢到这个初始步骤。有任何想法吗?
回答by Raghuram
m2eclipse has moved from sonatypeto eclipse.
m2eclipse 已经从sonatype 转移到了eclipse。
The correctupdate site is http://download.eclipse.org/technology/m2e/releases/
在正确的更新站点http://download.eclipse.org/technology/m2e/releases/
If this is not working, one possibility is you have an older version of Eclipse (< 3.6). The other - if you see timeout related errors - could be that you are behind a proxy server.
如果这不起作用,一种可能是您使用的是旧版本的 Eclipse (< 3.6)。另一个 - 如果您看到与超时相关的错误 - 可能是您在代理服务器后面。
回答by user1309573
You can install maven from m2eclipse - http://download.eclipse.org/technology/m2e/releases
您可以从 m2eclipse 安装 maven - http://download.eclipse.org/technology/m2e/releases
回答by Vladik Y
For Eclipse (Helios) the following procedure works - I've tried it:
对于 Eclipse (Helios),以下程序有效 - 我已经尝试过:
- Go to Help -> Install New software
- Add the following link: http://download.eclipse.org/technology/m2e/releases/1.3
- After results found unselect "sl4j... (optional)"
- Next
- 转到帮助 -> 安装新软件
- 添加以下链接:http: //download.eclipse.org/technology/m2e/releases/1.3
- 结果发现后取消选择“sl4j...(可选)”
- 下一个
回答by asilchenko
Installed Maven in Juno IDE for Java EE (eclipse-jee-juno-SR2-linux-gtk-x86_64)
在 Java EE 的 Juno IDE 中安装了 Maven (eclipse-jee-juno-SR2-linux-gtk-x86_64)
Eclipse -> Available Software Sites -> Maven URL -> http://download.eclipse.org/technology/m2e/releases
Eclipse -> 可用软件站点 -> Maven URL -> http://download.eclipse.org/technology/m2e/releases
Following Maven URL did not work and was giving "No software found" error: http://eclipse.org/m2e/download/
以下 Maven URL 不起作用并给出“找不到软件”错误:http: //eclipse.org/m2e/download/
回答by user2562520
I found Maven Integration for Eclipse here.
我在这里找到了 Eclipse 的 Maven 集成。
http://download.eclipse.org/technology/m2e/releases
http://download.eclipse.org/technology/m2e/releases
After installing restart eclipse. Worked for me running Eclipse Juno.
安装后重启eclipse。为我运行 Eclipse Juno 工作。
回答by Sikander
In Eclipse Select Help -> Marketplace
Enter "Maven" in Find box and click on Go button
Click on "Install" button for Maven Integration for Eclipse (Juno and newer)
在 Eclipse 中选择帮助 -> 市场
在“查找”框中输入“Maven”,然后单击“Go”按钮
单击 Eclipse Maven 集成的“安装”按钮(Juno 和更新版本)
With this, maven should get install without any problem.
有了这个,maven 应该可以毫无问题地安装。
回答by Rajesh Balan
This has been moved to a new location now -- and please use the below site for updates.
现在已移至新位置 - 请使用以下站点进行更新。
http://download.eclipse.org/technology/m2e/releases
回答by Zeeshan Akhter
Installing m2eclipse
安装 m2eclipse
All downloads are provided under the terms and conditions of the Eclipse Foundation Software User Agreement unless otherwise specified.
除非另有说明,否则所有下载均根据 Eclipse Foundation 软件用户协议的条款和条件提供。
m2e is tested against Eclipse 4.2 (Juno) and 4.3 (Kepler).
m2e 针对 Eclipse 4.2 (Juno) 和 4.3 (Kepler) 进行了测试。
See http://wiki.eclipse.org/M2E_updatesite_and_gittagsfor detailed information about available builds and m2e build repository layout.
有关可用构建和 m2e 构建存储库布局的详细信息,请参阅http://wiki.eclipse.org/M2E_updatesite_and_gittags。
m2e 1.3 and earlier version have been removed from the main m2e update site. These old releases are still available and can be installed from repositories documented in http://wiki.eclipse.org/M2E_updatesite_and_gittags
m2e 1.3 及更早版本已从主 m2e 更新站点中删除。这些旧版本仍然可用,可以从http://wiki.eclipse.org/M2E_updatesite_and_gittags 中记录的存储库安装
Please note that links below point at Eclipse p2 repositories; you must access them from Eclipse (see how). Update Sites Latest m2e release (recommended) http://download.eclipse.org/technology/m2e/releasesm2e milestone builds towards version 1.5 http://download.eclipse.org/technology/m2e/milestones/1.5Latest m2e 1.5 SNAPSHOT build (not tested, not hosted at eclipse.org) http://repository.takari.io:8081/nexus/content/sites/m2e.extras/m2e/1.5.0/N/LATEST/
请注意,下面的链接指向 Eclipse p2 存储库;您必须从 Eclipse 访问它们(查看方法)。更新站点 最新的 m2e 版本(推荐) http://download.eclipse.org/technology/m2e/releasesm2e 里程碑构建到 1.5 版 http://download.eclipse.org/technology/m2e/milestones/1.5最新的 m2e 1.5 SNAPSHOT构建(未测试,未托管在 eclipse.org) http://repository.takari.io:8081/nexus/content/sites/m2e.extras/m2e/1.5.0/N/LATEST/
回答by Prashanth Sams
Eclipse > Help > Eclipse Marketplace...
Eclipse > 帮助 > Eclipse 市场...
Search for m2e
搜索 m2e
Install Maven Integration for Eclipse (Juno and newer)
. [It works for Indigo also]
安装Maven Integration for Eclipse (Juno and newer)
. [它也适用于 Indigo]
回答by cmcginty
Ubuntu 12.04's Eclipse was so broken for me I couldn't get M2E to install. The only way to fixed it was by using the official tar archive from the eclipse download page after purging all the ubuntu eclipse packages. - Cheers
Ubuntu 12.04 的 Eclipse 对我来说太糟糕了,我无法安装 M2E。修复它的唯一方法是在清除所有 ubuntu eclipse 包后使用 eclipse 下载页面中的官方 tar 存档。- 干杯