add dependency
add plugin configuration into pom.xml
mvn archetype:create -DgroupId=com.example.myproject -DartifactId=myproject
modify for multi-module
mvn archetype:create -DgroupId=com.example.myproject.sub -DartifactId=myproject-sub
mvn archetype:create -DgroupId=com.example.myproject.main -DartifactId=myproject-main
add dependancy from main to sub
remove src