How to create an empty multi module Maven project?

后端 未结 8 453
孤独总比滥情好
孤独总比滥情好 2020-12-04 05:19

Right now I usually find a pom.xml file on the web that has a pom packaging and copy and paste it to create my parent project. Then I used to run <

8条回答
  •  猫巷女王i
    2020-12-04 06:03

    Same answer as Chris H. i just added groupId, artifactId and version options and disabled the interactive mode.

    mvn archetype:generate -DarchetypeGroupId=org.codehaus.mojo.archetypes \
        -DarchetypeArtifactId=pom-root \
        -DarchetypeVersion=RELEASE \
        -DinteractiveMode=false \
        -DgroupId=com.mycompany.app \
        -DartifactId=my-app \
        -Dversion=1.0.0-SNAPSHOT  \
    

提交回复
热议问题