Best Practices for releasing with 3rd party SNAPSHOT dependencies

January 26, 2009 By Brian Fox 0

The Maven Release plugin enforces best practices for releasing Maven artifacts. In summary, the release plugin performs the following steps:

  1. Validate no local changes against your SCM
  2. Validate that there are no SNAPSHOT dependencies
  3. Convert the modules to the to-be released version
  4. Ensure the build and Unit/Integration tests succeed
  5. Commit the changes to SCM, then Tag the release
  6. Checkout the tag to a clean location and build/deploy the artifacts

Dealing with failures on Step #2 is where I want to focus today. (more…)

Maven code: How to detect if you have a SNAPSHOT version

May 29, 2008 By Brian Fox Comments Off

I answer this question often enough that I decided to burn it to a blog so I don’t have to dig it out of the source anymore…and maybe save someone else the time along the way.

Here is the relevant code that Maven uses to determine if an artifact is a snapshot or not: (more…)

Categories: How-To, Maven Tags: , , ,