Maven best practices

Today, my friend Marco sent me a great blog entry on Maven best practices. In a few words, it says :

  1. Automate Snapshot Deployment by integrating your project in a CI system (like Hudson)
  2. Isolate Local Repositories using use -Dmaven.repo.local=xxxx option to define the unique local repositories for each build.
  3. Regularly Purge Local Repositories (mvn dependency:purge-local-repository)
  4. Enable Batch Mode with the -B option to reduce log size
  5. Enable Full Stack Traces (-e) when there's a build error
  6. Print Test Failures to Standard Output (in your settings.xml : true)
  7. Always check for Snapshots (-U option); useful when your project is split in modules and libraries. This ensures you always have the last dependency library release on your project.

Click here to see the full post : http://blogs.sonatype.com/people/2009/01/maven-continuous-integration-best-practices/

Thanks Marco!