A very short Maven guide

Submitted by kobit on Tue, 2010-04-06 21:22

If you don't use Maven at all or use it once a year you may find the document a useful maven commands reminder:

Snapshot compilation and snapshot package generation

  • mvn compile - compilation of the snapshot package
  • mvn package - create snapshot jar file
  • mvn install - install in local repository shanpshot jar file
  • mvn deploy - deploy to the remote repository snapshot jar file

Release compilation, generation

  • mvn release:prepare prepare the project for a new version release
  • mvn release:perform execute new version release generation

Generating tar.gz, tar.bz2 file with sources only

  • mvn -DdescriptorId=src assembly:assembly