On Thu, Dec 20, 2012 at 3:02 PM, <[email protected]> wrote: > Hi. > > I can't find any documentation on the Maven site about snapshots. I'm > trying to determine whether a snapshot is considered to be older or > newer than the version number prefix. > > Is 1.0.0-SNAPSHOT considered to be the current HEAD, having a > theoretical 1.0.0 at some point in the past, or is 1.0.0-SNAPSHOT > considered to be a precursor to some future 1.0.0 release?
See http://www.sonatype.com/books/mvnref-book/reference/pom-relationships-sect-pom-syntax.html """if the next release of your system is going to have a version "1.4", your project would have a version "1.4-SNAPSHOT" until it was formally released.""" > > The only information I can find seems to be off-site at: > > https://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and+Conflict+Resolution#DependencyMediationandConflictResolution-IncorporatingSNAPSHOTversionsintothespecification The first section of this page defines SNAPSHOT as a qualifier ("the qualifier section is optional (and is SNAPSHOT, alpha-1, alpha-2)") and then says "if qualifier does not exist, it is newer than if it does", meaning that 1.0.0 is newer than 1.0.0-SNAPSHOT. > The Maven user guide mentions that snapshots "will be described later > in the guide" - but they aren't. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > -- Thomas Broyer /tɔ.ma.bʁwa.je/ --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
