Maven Versioning¶
Identifier¶
maven
References¶
- https://maven.apache.org/pom.html#Dependency_Version_Requirement_Specification
- https://octopus.com/blog/maven-versioning-explained
- https://maven.apache.org/enforcer/enforcer-rules/versionRanges.html
Ranges/Constraints¶
✅ Ranges are supported.
Valid rangeStrategy
values are: bump
, widen
, pin
, replace
Description¶
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