什么是相当于退休的月食:eclipse在m2e? [英] What is the equivalent of the retired mvn eclipse:eclipse in m2e?

查看:112
本文介绍了什么是相当于退休的月食:eclipse在m2e?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



右键单击项目视图> 导入 导入.. 。该过程将正确创建上述文件并相应地配置Eclipse。



但是,您是否已经有项目导入(在这种情况下文件已经存在),您可以转换通过配置操作的现有项目到Maven:





右键单击相关项目> 配置> 转换为Maven自然然后修改现有的文件和设置来识别Maven构建(主要添加 org.eclipse.m2e.core.maven2Nature nature和 org.eclipse.m2e.core.maven2Builder 信息到现有的 .project 文件)。


The Apache Maven Eclipse Plugin is retired. What is the equivalent command line or in Eclipse UI for:

mvn eclipse:eclipse

that generates the files that a project requires to be seen as a Java project in Eclipse?

解决方案

The eclipse goal of the maven-eclipse-plugin would actually:

generates the Eclipse configuration files.

Which basically means .project, .classpath and the .settings folder.

These folders and procedure is handled by the Import action, where you can actually specify to import an existing project as a Maven project:

Right click on the Projects view > Import > Import... The procedure will properly create the aforementioned files and configure Eclipse accordingly.

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:

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).

这篇关于什么是相当于退休的月食:eclipse在m2e?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆