Maven常用命令:
1.clean: 清理,编译后的target目录;
2.compile: 编译,只编译main目录,不编译test中的代码。编译后生成target目录。
3.test-compile:编译test目录中的代码
4.test: 运行test里边的代码
5.package: 打包①java项目->打成jar包②web项目->打成war包
6.install:发布项目到本地仓库,用在打jar包上,打成jar包可以被其他项目使用。(发布war包mei'y'y)
7.tomcat:run:一键构建项目。