[英]What is the equivalent of the retired mvn eclipse:eclipse in m2e?
The Apache Maven Eclipse Plugin is retired. Apache Maven Eclipse插件已停用。 What is the equivalent command line or in Eclipse UI for:
什么是等效命令行或在Eclipse UI中:
mvn eclipse:eclipse
that generates the files that a project requires to be seen as a Java project in Eclipse? 生成项目需要在Eclipse中被视为Java项目的文件?
The eclipse
goal of the maven-eclipse-plugin
would actually : maven-eclipse-plugin
的eclipse
目标实际上是 :
generates the Eclipse configuration files.
生成Eclipse配置文件。
Which basically means .project
, .classpath
and the .settings
folder. 这基本上意味着
.project
, .classpath
和.settings
文件夹。
These folders and procedure is handled by the Import
action, where you can actually specify to import an existing project as a Maven project: 这些文件夹和过程由
Import
操作处理,您可以在其中实际指定将现有项目导入为Maven项目:
Right click on the Projects view > Import
> Import..
. 右键单击Projects视图>
Import
> Import..
The procedure will properly create the aforementioned files and configure Eclipse accordingly. 该过程将正确创建上述文件并相应地配置Eclipse。
However, shall you already have the project imported (in that case files would already exist), you can convert the existing project to Maven via the Configure
action: 但是,您是否已经导入了项目(在这种情况下文件已经存在),您可以通过
Configure
操作将现有项目转换为Maven:
A right click on the concerned project > Configure
> Convert to Maven Nature
would then modify the existing files and settings to recognize the Maven build (mostly adding the org.eclipse.m2e.core.maven2Nature
nature and org.eclipse.m2e.core.maven2Builder
information to the existing .project
file). 右键单击相关项目>
Configure
> Convert to Maven Nature
然后将修改现有文件和设置以识别Maven构建(主要添加org.eclipse.m2e.core.maven2Nature
性质和org.eclipse.m2e.core.maven2Builder
信息到现有的.project
文件)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.