1.maven clean。
清理項目的target目錄
2.maven compile
編譯項目
3.maven test
編譯項目後,再執行Junit測試方法
4.maven package
編譯項目後,再執行Junit測試方法,再把項目打包到target目錄
5.maven install
編譯項目後,再執行Junit測試方法,再把項目打包到target目錄,再安裝到本地倉庫。
原文:https://blog.csdn.net/weixin_40288413/article/details/80718475