[ https://jira.codehaus.org/browse/MNG-3092?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=350935#comment-350935
]
David Hoffer commented on MNG-3092:
-----------------------------------
Yeah I get the idea. Impossible to do so but it would be interesting to know the set of users
so turned off by this debacle they stopped/didn't use Maven vs the set of users using the
broken feature, but I suspect the former is a much larger size. That being said I concur
that Maven shouldn't break builds in existing versions, but that is easily handled. They
should fix it now but put the fix behind some optional flag, e.g. command line/settings.xml/etc.
Then in a subsequent Maven version upgrade that move that to the default behavior. When
they went to 3.0 would have been the ideal time to make the fix but any non-bug fix version
change is fine. And...if the Maven devs want to support the 'legacy' broken behavior with
an optional flag that is fine too.
> resolution of version ranges with non-snapshot bounds can resolve to a snapshot version
> ---------------------------------------------------------------------------------------
>
> Key: MNG-3092
> URL: https://jira.codehaus.org/browse/MNG-3092
> Project: Maven
> Issue Type: Bug
> Components: Dependencies
> Reporter: Mark Hobson
> Assignee: Jason van Zyl
> Fix For: 3.2.x
>
> Attachments: MNG-3092.patch, MNG-3092.patch
>
>
> Contrary to the 2.0 design docs:
> "Resolution of dependency ranges should not resolve to a snapshot (development version)
unless it is included as an explicit boundary."
> -- from http://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and+Conflict+Resolution#DependencyMediationandConflictResolution-Incorporating%7B%7BSNAPSHOT%7D%7Dversionsintothespecification
> The following is equates to true:
> VersionRange.createFromVersionSpec( "[1.0,1.1]" ).containsVersion( new DefaultArtifactVersion(
"1.1-SNAPSHOT" ) )
> The attached patch only allows snapshot versions to be contained in a range if they are
equal to one of the boundaries. Note that this is a strict equality, so [1.0,1.2-SNAPSHOT]
will not contain 1.1-SNAPSHOT.
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)
|