安装 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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 22:51:40  来源:igfitidea点击:

Maven found missing in Eclipse IDE (Mars) after installing m2e-egit

eclipsemaveneclipse-pluginm2e

提问by Prashanth Sams

unable to create a maven project after installing the m2e-egit plugin; Obviously I don't see the maven option under Eclipse > Window > preferences

安装m2e-egit插件后无法创建maven项目;显然我在Eclipse > 窗口 > 首选项下没有看到 maven 选项

enter image description hereenter image description here

在此处输入图片说明在此处输入图片说明

Tool used:

使用的工具:

Eclipse Java EE IDE for Web Developers.
Version: Mars Release (4.5.0)

回答by Jorel

Try this :

尝试这个 :

Firstly, for Maven: Eclipse > Help > Install new softwareand add http://download.eclipse.org/technology/m2e/releases.

首先,对于 MavenEclipse > 帮助 > 安装新软件并添加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-egitEclipse > 帮助 > 安装新软件并添加 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 会使它们消失。