1、clean (清理): 将根目录下的target目录清除
2、compile (编译):将项目中.java文件编译成.class文件
3、test(单元测试):
单元测试类名有要求:XXXTest.java
项目根目录下的src/test/java目录下的单元测试类都会执行
4、package(打包):
web project ---- war 包
java project ---- jar包
将项目打包、打包项目根目录下target目录
5、install (安装):
编译并将打的包放在本地仓库
###############################
使用maven运行web项目:
进入web项目目录,运行mvn tomcat:run命令。