« home

My Maven2 Cheat Sheet

posted on

Here are some Maven2 command lines that I use most often: To create a new project: mvn archetype:create -DgroupId=com.mbledug.foo -DartifactId=bar To generate Eclipse project descriptor after configuring the dependencies in pom.xml: mvn eclipse:eclipse To run unit tests, obviously: mvn test Tun run a single test by test class name: mvn test -Dtest=FooBar To generate site documentation without running the tests (handy while updating the APTs): mvn -Dmaven.test.skip=true clean site To…

more »