Message-ID: <1781059056.1687.1369248995763.JavaMail.email@example.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_1686_1884632437.1369248995763" ------=_Part_1686_1884632437.1369248995763 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
This page describes the maven standard for project version numbe= rs. Maven's dependency resolution uses the project version string to corre= ctly order project versions.
The format of the version String should look like the following:
For example, the string 2.0.1-beta-1 has a major version "2", = a minor version "0" a, an incremental version "1", and = a qualifier "beta-1". The String "5" has only a major = version and none of the other components.
Maven includes a special qualifier string called snapshot. This is can = be any standard version string that ends with the qualifier "-SNAPSHOT= ". Snapshot version are handled differently than the standard version= strings in that Maven does not assume these artifacts are static. Snapsho= t artifacts are intended to be temporary release builds and therefore will = change and/or be removed over time.
The code used to parse a version string in Maven can be found in the pub= lic svn repository.
When using version ranges, it is often necessary to sort several version= strings to select the correct dependency version. For two valid version s= trings, each component of the version string is compared separately until a= difference is found. For the numeric portions of the version, the higher = number is considered newer than the lower version number. For the non-nume= ric portion of the version string (qualifier), the strings are handled as f= ollows.
Maven 2.x used alphabetical order to sort the qualifiers. With earlier = letters considered older than later letters. Thus "alpha" is con= sidered older than "beta". And no qualifier is considered newer = than any qualifier.
Maven 3 has some hard-coded qualifier strings: "alpha", "= beta", "rc", "ga", etc. These are given a predete= rmined order. For more details, see the above links to the source.------=_Part_1686_1884632437.1369248995763--