Maven resolution of snapshots when non-snapshot version exists -
say "myproject" depends on "n-snapshot" version of projecta. projecta parallelly developed(by other team) , graduates "n" "n-snapshot" , released repository. can maven extension written fetch version "n" of projecta (though pom of myproject has version "n-snapshot"for projecta) once "n" released / "n-snapshot" removed? there pitfalls / downsides in doing this?
if want version 1.0.0-snapshot or 1.0.0 (when released), can use version range
[1.0.0-snapshot,1.0.0]
this automatically resolves version range (the highest found, if no other constraints given). downside obstructs dependency mediation: if other transitive dependency of project [2.0.0-snapshot, 2.0.0], build fail.
Comments
Post a Comment