将现有的 Maven 项目导入 Eclipse

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

Importing an existing maven Project into Eclipse

eclipsemaven-2

提问by user974802

I have an existing Maven Project with me . I am using Eclipse Helios as my IDE , i need to import an existing maven Project into my IDE .

我有一个现有的 Maven 项目。我使用 Eclipse Helios 作为我的 IDE,我需要将现有的 maven 项目导入我的 IDE。

Please tell me what is the correct approach to import an exisiting maven Application ?? (Should we choose Import Existing maven Project option or Should we choose import Exisiting Projects into Workspace option ??

请告诉我导入现有 maven 应用程序的正确方法是什么?(我们应该选择 Import Existing maven Project 选项还是应该选择 import Exisiting Projects into Workspace 选项??

Please let me know , thank you very much .

请告诉我,非常感谢。

回答by Ramesh

Use Import->Maven->Existing Maven Projects

使用Import->Maven->Existing Maven Projects

I'm assuming, you've m2eclipse plugin installed in your Eclipse.

我假设您已经在 Eclipse 中安装了 m2eclipse 插件。

enter image description here

在此处输入图片说明

回答by kunal

Use mvn plugin "eclipse:eclipse" for setting up the parameters for eclipse http://maven.apache.org/plugins/maven-eclipse-plugin/http://maven.apache.org/plugins/maven-eclipse-plugin/myeclipse-mojo.html

使用 mvn 插件“eclipse:eclipse”设置 eclipse 的参数 http://maven.apache.org/plugins/maven-eclipse-plugin/http://maven.apache.org/plugins/maven-eclipse-plugin /myeclipse-mojo.html

After which you can choose, "create from existing source" under "create new project"

之后,您可以选择“创建新项目”下的“从现有源创建”

回答by Piyush M Agarwal

Include the m2e plugin into eclipse Windows >> Install new software enter this site to download the m2e plugin http://download.eclipse.org/technology/m2e/releases

将 m2e 插件包含到 eclipse Windows >> 安装新软件进入本站下载 m2e 插件 http://download.eclipse.org/technology/m2e/releases