安装 m2e-egit 后在 Eclipse IDE (Mars) 中发现 Maven 丢失
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/32580463/
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 found missing in Eclipse IDE (Mars) after installing m2e-egit
提问by Prashanth Sams
回答by Jorel
Try this :
尝试这个 :
Firstly, for Maven: Eclipse > Help > Install new softwareand add http://download.eclipse.org/technology/m2e/releases.
首先,对于 Maven: Eclipse > 帮助 > 安装新软件并添加http://download.eclipse.org/technology/m2e/releases。
Secondly, for m2e-egit: Eclipse > Help > Install new softwareand add https://repository.takari.io/content/sites/m2e.extras/m2eclipse-egit/0.14.0/N/LATEST/. Because the version of m2e-egit in the Marketplace is outdated
其次,对于 m2e-egit: Eclipse > 帮助 > 安装新软件并添加 https://repository.takari.io/content/sites/m2e.extras/m2eclipse-egit/0.14.0/N/LATEST/。因为Marketplace中的m2e-egit版本已经过时了
Now restart eclipse.
现在重新启动eclipse。
It perfectly worked for me (Mars Version).
它非常适合我(火星版)。
回答by fwc
I had this same issue with m2eclipse-scala. I tracked the issue down to what seems to be multiple installs of the m2e plugin, one explicit and one implicit. This plugin gets installed by m2eclipse-scala if it's not already there (perhaps similarly to how m2e-egit operates). The base version of Eclipse that I'm using does NOT show m2e installed under Window > Installation Details, but all of the Maven buttons and toolbars are already present, and explicitly installing m2e makes them disappear.
我对 m2eclipse-scala 有同样的问题。我将问题归结为似乎是多次安装 m2e 插件,一个是显式安装,一个是隐式安装。如果 m2eclipse-scala 还没有安装这个插件(可能类似于 m2e-egit 的操作方式)。我正在使用的 Eclipse 的基本版本没有显示在窗口 > 安装详细信息下安装的 m2e,但是所有 Maven 按钮和工具栏都已经存在,并且明确安装 m2e 会使它们消失。