maven创建分model的工程

创建parent
mvn archetype:generate -DgroupId=com.hikvision -DartifactId=aocp-parent -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false

创建子model
mvn archetype:generate -DgroupId=com.hikvision -DartifactId=aocp-web -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false

父工程中删除src目录,然后进去创建子工程

原文地址:https://www.cnblogs.com/duan2/p/11799141.html