下载依赖
mvn dependency:copy-dependencies
导入本地jar包到maven仓库
mvn install:install-file
-Dfile=filePath
-DgroupId=groupId
-DartifactId=artifactId
-Dversion=version
-Dpackaging=jar
创建Web项目
mvn archetype:create
-DgroupId=packageName
-DartifactId=webappName
-DarchetypeArtifactId=maven-archetype-webapp
编译源代码
mvn compile
编译测试代码
mvn test-compile
运行测试
mvn test
打包
mvn package
清除产生的项目
mvn clean
编译测试的内容
mvn test-compile
只打jar包
mvn jar:jar
上传到私服
mvn deploy
在本地Repository中安装jar
mvn install
源码打包
mvn source:jar
或
mvn source:jar-no-fork