Friday 25 January 2008

Useful maven commands

To download source code into your maven repo:

mvn eclipse:clean eclipse:eclipse –DdownloadSources=true

Another example:

mvn -r -N -U -cpu -fae clean install

-r Execute goals found in the reactor (the reactor is a maven feature whereby maven decides what to build first based on the dependency graph)
-N Do not recurse into sub-projects
-U Update snapshots
-cpu Check plugin updates
-fae Fail at end (ie. keep building if one module or test fails)

1 comment:

BlueFox said...

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/

Links