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:

  1. look latest version (1.2)
  2. take release if available. else snapshot

Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -