how to run the command mvn eclipse:eclipse

后端 未结 4 832
[愿得一人]
[愿得一人] 2020-12-04 14:24

I\'m following these instructions, but having problems with running commands like mvn eclipse:eclipse.

How and where shall I run the command?

My

相关标签:
4条回答
  • 2020-12-04 14:51

    Right click on the project

    ->Run As --> Run configurations.

    Then select Maven Build

    Then click new button to create a configuration of the selected type. Click on Browse workspace (now is Workspace...) then select your project and in goals specify eclipse:eclipse

    0 讨论(0)
  • 2020-12-04 15:02

    Besides the powerful options on the "Run Configurations.." on a well configured project you'll see the maven tasks on the Run As as well.

    enter image description here

    0 讨论(0)
  • 2020-12-04 15:12

    I don't think one needs it any more. The latest versions of Eclipse have Maven plugin enabled. So you will just need to import a Maven project into Eclipse and no more as an existing project. Eclipse will create the needed .project, .settings, .classpath files based on your pom.xml and environment settings (installed Java version, etc.) . The earlier versions of Eclipse needed to have run the command mvn eclipse:eclipse which produced the same result.

    0 讨论(0)
  • 2020-12-04 15:17

    The m2e plugin uses it's own distribution of Maven, packaged with the plugin.

    In order to use Maven from command line, you need to have it installed as a standalone application. Here is an instruction explaining how to do it in Windows

    Once Maven is properly installed (i.e. be sure that MAVEN_HOME, JAVA_HOME and PATH variables are set correctly): you must run mvn eclipse:eclipse from the directory containing the pom.xml.

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