Maven for Eclipse 1.5.0 插件无法在 Kepler 下安装
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/24479109/
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
Maven for Eclipse 1.5.0 plugin cannot be installed under Kepler
提问by Howy
I downloaded Eclipse Kepler and tried to install M2Eclipse from its update site.
我下载了 Eclipse Kepler 并尝试从其更新站点安装 M2Eclipse 。
After selecting Maven Integration for Eclipse, I clicked Next and got the following error:
为 Eclipse 选择 Maven 集成后,我单击下一步并收到以下错误:
Missing requirement: Maven Integration for Eclipse 1.5.0.20140606-0033 (org.eclipse.m2e.core 1.5.0.20140606-0033) requires 'bundle com.google.guava [14.0.1,16.0.0)' but it could not be found
缺少要求:Maven Integration for Eclipse 1.5.0.20140606-0033 (org.eclipse.m2e.core 1.5.0.20140606-0033) 需要'bundle com.google.guava [14.0.1,16.0.0)'但找不到
So I searched through the internet to find out how to install the Guava Eclipse plugin. Some say it's from the Eclipse marketplace, but it cannot be downloaded. I downloaded the binaryand tried to copy it to Eclipse's plugin directory. Still the same result.
所以我通过互联网搜索以了解如何安装Guava Eclipse插件。有人说它来自 Eclipse 市场,但无法下载。我下载了二进制文件并尝试将其复制到 Eclipse 的插件目录。结果还是一样。
cp ~/Downloads/guava-16.0.1.jar /Applications/eclipse/plugins/com.google.guava_16.0.1.v1234.jar
How do I install the m2e plugin for Kepler?
如何为 Kepler 安装 m2e 插件?
回答by Richard
m2e 1.5.0 requires Eclipse Luna. It will not work with Kepler or Indigo. (thanks to @HDavefor the link)
m2e 1.5.0需要 Eclipse Luna。它不适用于 Kepler 或 Indigo。(感谢@HDave提供链接)
So you have to use an older version of m2e under Kepler.
所以你必须在开普勒下使用旧版本的 m2e。
During installation, uncheck "Show only the latest versions of available software". Then only check the 1.4.1 version or lower version in the candidate list. It doesn't require the Guava dependency.
在安装过程中,取消选中“仅显示可用软件的最新版本”。然后只检查候选列表中的 1.4.1 版本或更低版本。它不需要 Guava 依赖项。
回答by amanteaux
Make sure you have the Luna repository in "Available Software Sites".
确保您在“可用软件站点”中有 Luna 存储库。
You can add it in : Help -> Install New Software... Then in the "Work with" input, you type http://download.eclipse.org/releases/luna/and press enter.
您可以将其添加到:Help -> Install New Software... 然后在“Work with”输入中,输入http://download.eclipse.org/releases/luna/并按 Enter。
After that, you should be able to install m2e with http://download.eclipse.org/technology/m2e/releases/
之后,您应该可以使用http://download.eclipse.org/technology/m2e/releases/安装 m2e
回答by Yury Khrol
You can findGuava 15 on Orbit project- "repository of bundled versions of third party libraries that are approved for use in one or more Eclipse projects". You can also directly add the Orbit project update siteto your kepler installation and you'll be able to update m2e
您可以在Orbit 项目上找到Guava 15 - “已批准在一个或多个 Eclipse 项目中使用的第三方库的捆绑版本存储库”。您也可以直接将Orbit 项目更新站点添加到您的开普勒安装中,您就可以更新 m2e
回答by Michael Skidan
What has helped me for Juno release is adding http://download.eclipse.org/technology/m2e/releases/1.3/as plugin update site. The version of Maven for Eclipse was 1.3 instead of 1.5 but, for me, this differrence was less principal than the absence of extra dependencies and extra update sites, especially that of the newer version of IDE itself.
帮助我发布 Juno 的是添加 http://download.eclipse.org/technology/m2e/releases/1.3/作为插件更新站点。用于 Eclipse 的 Maven 版本是 1.3 而不是 1.5,但对我来说,这种差异不如没有额外依赖项和额外更新站点那么重要,尤其是较新版本的 IDE 本身。
Do you necessarily need version 1.5 or 1.3 also should be good?
一定需要1.5版还是1.3版也应该不错吧?
回答by Michael Skidan
STEPS TO INSTALL MAVEN (in Eclipse):
安装 MAVEN 的步骤(在 Eclipse 中):
Maven Eclipse plugin installation step by step:
Maven Eclipse插件安装步骤:
Open Eclipse IDE
Click Help -> Install New Software...
Uncheck "Show only the latest versions of available software"
Click Add button at top right corner
At pop up: fill up Name as "M2Eclipse" and Location as"http://download.eclipse.org/technology/m2e/releases"
Check only one 1.4.1 Version.
Now click OK After that installation would be started.
打开 Eclipse IDE
单击帮助 -> 安装新软件...
取消选中“仅显示可用软件的最新版本”
点击右上角的添加按钮
在弹出窗口:填写名称为“M2Eclipse”和位置为“ http://download.eclipse.org/technology/m2e/releases”
只检查一个 1.4.1 版本。
现在单击 OK 安装将开始。
回答by Tam Dao
http://download.eclipse.org/technology/m2e/releasesThis URL does not work.
http://download.eclipse.org/technology/m2e/releases此 URL 不起作用。
http://download.eclipse.org/technology/m2e/releases/1.3/This one can work.
http://download.eclipse.org/technology/m2e/releases/1.3/这个可以工作。