-
mvn clean package依次执行了clean、resources、compile、testResources、testCompile、test、jar(打包)等7个阶段。
-
mvn clean install依次执行了clean、resources、compile、testResources、testCompile、test、jar(打包)、install等8个阶段。
-
mvn clean deploy依次执行了clean、resources、compile、testResources、testCompile、test、jar(打包)、install、deploy等9个阶段。
-
package命令完成了项目编译、单元测试、打包功能,但没有把打好的可执行jar包(war包或其它形式的包)布署到本地maven仓库和远程maven私服仓库
-
install命令完成了项目编译、单元测试、打包功能,同时把打好的可执行jar包(war包或其它形式的包)布署到本地maven仓库,但没有布署到远程maven私服仓库
-
deploy命令完成了项目编译、单元测试、打包功能,同时把打好的可执行jar包(war包或其它形式的包)布署到本地maven仓库和远程maven私服仓库
maven package、install、deploy的区别
最新推荐文章于 2024-12-10 11:40:07 发布
本文详细解析了Maven的生命周期,包括clean、resources、compile、testResources、testCompile、test、jar、install和deploy等阶段的功能及区别。阐述了package、install、deploy命令在项目构建、测试、打包及部署过程中的作用。
44万+

被折叠的 条评论
为什么被折叠?



