maven之生命周期

三套生命周期

clean / default / site
三套生命周期的各个阶段
clean : pre-clean  clean post-clean
default: validate / compile / test / package / verify / install / deploy
		  validate initialize 
		  generate-sources process-sources geneate-resources process-resources compile process-classes
		  generate-test-sources process-test-sources generate-test-resources process-test-resources test-compile test
		  pre-package package 
		  pre-integration-test integration-test post-intergration-test
		  verify
		  install
		  deploy
		  
site: pre-site  site post-site site-deploy

示例

mvn clean install site ; // 执行clean周期的pre-clean clean阶段和执行defalult周期到install阶段和site周期的site阶段 
mvn install site; // 执行defalult周期到install阶段和site周期的site阶段
mvn package; // 执行default周期到package阶段

//跳过测试阶段
mvn package -Dmaven.test.skip=true; 
mvn package -DskipTests=true

posted @ 2020-09-09 09:24  pengsn  阅读(127)  评论(0编辑  收藏  举报