maven的lifecycle

1.maven clean。

清理项目的target目录

2.maven compile

编译项目

3.maven test

编译项目后,再执行Junit测试方法

4.maven package

编译项目后,再执行Junit测试方法,再把项目打包到target目录

5.maven install

编译项目后,再执行Junit测试方法,再把项目打包到target目录,再安装到本地仓库。

猜你喜欢

转载自www.cnblogs.com/newcityboy/p/12008806.html