mvn archetype:generate \ -DgroupId=com.github.leeyazhou \ -DartifactId=maven-showcase \ -DarchetypeArtifactId=maven-archetype-quickstart \ -DinteractiveMode=false
初始化目錄java
cd maven-showcase && mkdir -p src/main/resources src/test/resources
mvn archetype:generate \ -DgroupId=com.github.leeyazhou \ -DartifactId=maven-showcase-web \ -DarchetypeArtifactId=maven-archetype-webapp \ -DinteractiveMode=false
初始化目錄git
cd maven-showcase-web && mkdir -p src/main/java src/main/resources src/test/resources src/test/java
在項目根目錄下執行github
mvn clean package