-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Augment version range resolution used repositories #2575
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…. Introduced new property: `maven.versionRangeResolver.natureOverride` that is used in VersionRangeResolver, and means: * not set; behave as before (default) * "auto" string; will check lower and upper bounds, and if any is snapshot, will querty snapshot reposes otherwise not * any valid value of resolver Metadata.Nature enum; then will use that Fixes: apache#2558
* <li>"snapshot" - query only snapshot repositories to discover versions</li> | ||
* </ul> | ||
* Default (when unset) is existing Maven behaviour: "release_or_snapshots". | ||
* @since 4.0.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4.1.0 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gnodet this needs backport to 4.0.0, but do I need to backport it manually or we have some automation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and is 4.0.0 as if you check #2574 the property is different: 3.x uses 3.x "way of naming", and 4.x already had maven.versionResolver...
so this introduced maven.versionRangeResolver...
prop
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ability to control which repositories to be queried to resolve ranges. Introduced new property: (apache#2575) Ability to control which repositories to be queried to resolve ranges. Introduced new property: `maven.versionRangeResolver.natureOverride` that is used in VersionRangeResolver, and means: * not set; behave as before (default) * "auto" string; will check lower and upper bounds, and if any is snapshot, will querty snapshot reposes otherwise not * any valid value of resolver Metadata.Nature enum; then will use that Fixes: apache#2558 Backport of master 37b0699
Ability to control which repositories to be queried to resolve ranges. Introduced new property: (#2575) Ability to control which repositories to be queried to resolve ranges. Introduced new property: `maven.versionRangeResolver.natureOverride` that is used in VersionRangeResolver, and means: * not set; behave as before (default) * "auto" string; will check lower and upper bounds, and if any is snapshot, will querty snapshot reposes otherwise not * any valid value of resolver Metadata.Nature enum; then will use that Fixes: #2558 Backport of master 37b0699
Two questions:
|
I suppose the value could be changed in 4.1.0 to be more intuitive. I'm not sure we want to change the default behavior in 3.9.x at least.
It looks like #2574 ... |
I don't know. I think more people would benefit from the default being automatic, which is more intuitive. It seems that this is not likely to hurt anybody, only benefit. I'm not expecting to use 4.x any time soon at all. So, I really only care about 3.9 right now... that's where it's likely going to continue to be the biggest problem. |
Ability to control which repositories to be queried to resolve ranges. Introduced new property:
maven.versionRangeResolver.natureOverride
that is used in VersionRangeResolver, and means:Fixes: #2558