maven build goal need to specify

后端 未结 4 1033
终归单人心
终归单人心 2020-12-23 14:48

I have extracted a sample Struts 2 project and it has the maven pom.xml file. I already installed the m2e plugin for eclipse. But when I right click the pom.xml file and sel

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-23 15:09

    after testing the above solutions I found the correct one.

    (1) make sure are enviroment variables are well set (M2_HOME=C:\Program Files\Apache Software Foundation\apache-maven-3.3.3

    M2=%M2_HOME%\bin)(https://www.tutorialspoint.com/maven/maven_environment_setup.htm)

    (2) open the command prompt as admin

    (3) change directory to your workspace (cd/workspace/project folder

    (4) finally (customize)

    mvn archetype:generate -DgroupId=fr.myGroupId -DartifactId=MyApplication -Dpackagename=fr.myGroupId -DarchetypeArtifactId=maven-archetype-quickstart .

提交回复
热议问题