Eclipse Maven 2 安装

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/34183503/
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:58:41  来源:igfitidea点击:

Eclipse Maven 2 installation

javaeclipsemaven

提问by Jim

I am doing a Maven build in Eclipse where my project requires Maven 2. My Maven runtime is set to embedded (3.2.1/1.5.1.20150109-1819). How do I set the runtime to use Maven 2?

我正在 Eclipse 中进行 Maven 构建,其中我的项目需要 Maven 2。我的 Maven 运行时设置为嵌入式 (3.2.1/1.5.1.20150109-1819)。如何设置运行时以使用 Maven 2?

I tried setting a runtime installation by pointing to my Maven 2 installation, but that did not work.

我尝试通过指向我的 Maven 2 安装来设置运行时安装,但这不起作用。

enter image description here

在此处输入图片说明

top level maven 2 path selected also does not work.

选择的顶级 maven 2 路径也不起作用。

enter image description here

在此处输入图片说明

回答by rd_

I pointed to libexec folder lying along bin, and it worked.

我指着 bin 旁边的 libexec 文件夹,它起作用了。

回答by gnikhil2

I found the details of a similar issue, with the M2E plugin, below is the link. https://dev.eclipse.org/mhonarc/lists/m2e-users/msg05131.html

我找到了类似问题的详细信息,使用 M2E 插件,下面是链接。 https://dev.eclipse.org/mhonarc/lists/m2e-users/msg05131.html

It might help to upgrade the m2e version. http://download.eclipse.org/technology/m2e/releases/

升级 m2e 版本可能会有所帮助。 http://download.eclipse.org/technology/m2e/releases/