Maven常用命令

maven命令

mvn -v
mvn help:system
mvn clean compile
mvn clean test
mvn clean package
mvn clean install

mvn archetype:generate -DarchetypeCatalog=local

 

查看依赖列表:

mvn dependency:list

查看依赖关系树:

mvn dependency:tree -Doutput=log.txt  

使用-Dverbose 参数可以列出更详细的信息。

mvn -Dverbose dependency:tree -Doutput=log.txt  

参考:http://blog.csdn.net/lkforce/article/details/62429998

分析依赖关系:

mvn dependency:analyze

 

裁剪反应堆:

参考:http://blog.csdn.net/jason5186/article/details/39530087

 

部署jar包

mvn deploy:deploy-file -DgroupId=xxx.xxx -DartifactId=xxx-Dversion=1.0 -Dpackaging=jar -Dfile=D:\xxx.jar -Dsources=D:\xxxx.jar -Durl=http://xxx:8080/repository/maven-releases/ -DrepositoryId=maven-releases

查看maven插件帮助

mvn help:describe

mvn deploy:help

mvn deploy:help -Ddetail=true -Dgoal=<goal-name>
to display parameter details.

 

posted @ 2017-05-17 17:46  Spring shine  阅读(389)  评论(0编辑  收藏  举报