maven 打包命令區別
mvn clean package
依次執行了clean, resource, compile, testResources, testCompile, test, jar(打包)等7個階段
package命令完成了項目編譯,單元測試, 打包功能, 但沒有把打好的包部署到本地maven倉庫和遠程的maven私服倉庫
mvn clean install
依次執行了clean, resource, compile, testResources, testCompile, test, jar(打包), install等8個階段
install命令完成了項目編譯, 單元測試, 打包功能, 同時把打好的包部署到本地倉庫, 但沒有部署到遠程maven私服倉庫
mvn clean deploy
依次執行了clean, resource, compile, testResources, testCompile, test, jar(打包), install, deploy等9個階段
deploy命令完成了項目編譯, 單元測試, 打包功能呢, 同時把打好的包部署到本地maven倉庫和遠程的maven私服倉庫
