maven 打包命令package,install, deploy 的区别

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私服仓库

猜你喜欢

转载自www.cnblogs.com/codeclock/p/12106519.html