1.命令方式:
1)Create the top-level root:
mvn archetype:generate -DarchetypeGroupId=org.codehaus.mojo.archetypes -DarchetypeArtifactId=pom-root -DarchetypeVersion=RELEASE
2)
cd
into your newly created root dir
3)每一个子模块:
mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=RELEASE
2.eclipse插件方式:
1)创建父项目
2)创建子模块