Sunday, October 5, 2008

Common Maven Commands

Here are some important Maven commands that I always seem to forget but are needed on many projects that I work on.

I am using this command to create an Eclipse project from a Maven project

mvn eclipse:eclipse

This will download all of the libraries required in your pom.xml and create a default repository for you.

mvn install

This will clean the "target" directory of all files, note that this does not compile your code.

mvn clean

0 comments: