Wednesday, May 28, 2008

Useful maven commands

To skip tests, you can set the property maven.test.skip=true, i.e:
mvn -Dmaven.test.skip=true package


To list all the dependencies of your project, you can use the dependency plugin, i.e:
mvn dependency:tree


To build a web-site with a lot of information about your project, you can use the site plugin, i.e:
mvn site

This generates a directory 'site' inside your 'target'.

2 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. I have compiled a mini guide command reference for maven, You can see it here http://www.shankh.com/2009/07/12/maven-commands-reference-mini-guide/

    ReplyDelete

Related Posts Plugin for WordPress, Blogger...