1mvn clean package
2mvn clean install
以上两条命令,表面上看做了相同的工作,实际上却略有区别。
mvn clean package
:删除目标文件夹、编译代码并打包mvn clean install
:删除目标文件夹、编译代码并打包、将打好的包放置到本地仓库中
参考资料:How are “mvn clean package” and “mvn clean install” different?
版权声明:本文遵循 CC BY-SA 4.0 版权协议,转载请附上原文出处链接和本声明。
Copyright statement: This article follows the CC BY-SA 4.0 copyright agreement. For reprinting, please attach the original source link and this statement.