maven中clean,compile,test,package,install的用處。

在這裏插入圖片描述

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章