September 25, 2008

Maven 2 Commands that i use the most

Here is a quick list of commands i use all the time... there are a grep from my history

Basic Build
- mvn clean
- mvn clean install
- mvn clean install -Dmaven.test.skip (install without running tests)

- mvn clean test -Dtest=MyTest (runs a single test) you can use this for testing packages also
- mvn clean surefire-report:report ( run unit test and builds a surefire reports in target site dir. )

Testing Code coverage
- mvn clean cobertura:check ( run unit test and make sure we clear the check )
- mvn clean cobertura:cobertura

- mvn -Dusername=gdawoud release:prepare (build step 1)
- mvn release:perform (build step 2)

No comments:

Post a Comment