java - Understanding Maven Version Ranges -
assume have artifact versions
1.0-snapshot, 1.0, 1.1, 1.2-snapshot
in maven repository. now, when specify version range
[1.0-snapshot,)
for artifact (and assume there no other version requirements), maven resolve 1.1 or 1.2-snapshot?
i have read version ranges resolve release versions if both boundaries release versions haven't understood exact behaviour if 1 of boundaries snapshot.
background: legacy reasons, have release artifacts depend on snapshot artifacts. these snapshot artifacts removed when release version available (which breaks maven builds). logically, aiming behaviour: take snapshot version, replace release version 1 available.
i tested, maven resolved 1.2-snapshot
so priority seems be:
- look latest version (1.2)
- take release if available. else snapshot
Comments
Post a Comment