Maven Snapshot Repository vs Release Repository

Joseph picture Joseph · Nov 9, 2008 · Viewed 84.4k times · Source

What is the difference between a Snapshot Repository and Release Repository?

This is with reference to setting up Repositories (like Artifactory, Nexus etc)

Answer

Brian Fox picture Brian Fox · Dec 25, 2008

Release repositories hold releases and Snapshot repositories hold snapshots. In maven a snapshot is defined as an artifact with a version ending in -SNAPSHOT. When deployed, the snapshot is turned into a timestamp. By definition, snapshots are mutable, releases are immutable. This is why Nexus makes you store them separately because usually you don't care if you lose snapshots, but you will care if you lose releases. It makes snapshot cleanup much easier to deal with that way.