1. maven命令生成复合工程: ------- mvn archetype:generate -DgroupId=com.caiwm -DartifactId=spring-learn -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false 修改packing为pom ------ cd composite-parent mvn archetype:generate -DgroupId=com.finchina -DartifactId=1-common -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=falsemvn archetype:generate -DgroupId=com.finchina -DartifactId=2-domain -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=falsemvn archetype:generate -DgroupId=com.finchina -DartifactId=3-dao -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=falsemvn archetype:generate -DgroupId=com.finchina -DartifactId=4-service -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=falsemvn archetype:generate -DgroupId=com.finchina -DartifactId=5-controller -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false-- mvn archetype:generate -DgroupId=com.finchina -DartifactId=web -DarchetypeArtifactId=maven-archetype-webapp -DinteractiveMode=false999. 参考 1. https://www.cnblogs.com/xdp-gacl/p/4242221.html