7

While working on multiple projects I come cross a lot of cases in which the version number has a -SNAPSHOT suffix. For example

<version>1.0.0-SNAPSHOT</version>

Why is this naming used? Couldn't people just use a different version number? What exactly hides behind the meaning of the snapshot suffix?

Thanks!

Dropout
  • 13,653
  • 10
  • 56
  • 109

2 Answers2

12

A snapshot version is a version that is currently under development and not production-ready.

It is also a guideline that you shouldn't use this version in your application, since its API is not guaranteed to be stable.

Kurt Du Bois
  • 7,550
  • 4
  • 25
  • 33
  • 2
    Content of a -SNAPSHOT artifact is also considered mutable - i.e. maven will check periodically if there isn't a more recent .jar with the same version. Non -SNAPSHOT versions are considered immutable (i.e. if we have cached foo-1.2.3 already, it's never checked again) – ptyx Feb 12 '14 at 18:53
4

SNAPSHOT means latest version that hasn't been released yet, usually a version in development.

Michiel Borkent
  • 34,228
  • 15
  • 86
  • 149