What is the equivalent of the retired mvn eclipse:eclipse in m2e?

前端 未结 1 935
-上瘾入骨i
-上瘾入骨i 2020-12-19 07:51

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

mvn eclipse:eclipse

that generates th

相关标签:
1条回答
  • 2020-12-19 08:38

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

    0 讨论(0)
提交回复
热议问题