renovate/lib/modules/versioning/maven
2022-12-24 06:50:13 +01:00
..
compare.spec.ts fix(maven): Allow whitespaces after comma in ranges (#14922) 2022-04-03 20:49:36 +02:00
compare.ts refactor: convert enums to unions (#18900) 2022-11-20 07:34:23 +00:00
index.spec.ts test: maven exact and equals range 2022-12-24 06:50:13 +01:00
index.ts refactor: lib/modules (#14488) 2022-03-04 09:04:02 +01:00
readme.md refactor: lib/modules (#14488) 2022-03-04 09:04:02 +01:00

Maven versioning is similar to SemVer but also very different in places. It's specified by Maven itself.

Ranges are supported using Maven's special syntax.

For development purposes, download maven-artifact JAR and run:

$ java -jar maven-artifact-*.jar 3.2.4-alpha-1 3.2.4-SNAPSHOT 3.2.4.0
Display parameters as parsed by Maven (in canonical form) and comparison result:
1. 3.2.4-alpha-1 == 3.2.4.alpha.1
   3.2.4-alpha-1 < 3.2.4-SNAPSHOT
2. 3.2.4-SNAPSHOT == 3.2.4.snapshot
   3.2.4-SNAPSHOT < 3.2.4.0
3. 3.2.4.0 == 3.2.4

Also, take a look at maven-cmp utility.