Allow configurable repository selection for version range resolution#2575
Allow configurable repository selection for version range resolution#2575cstamas merged 2 commits intoapache:masterfrom
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.
@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.
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.
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.natureOverridethat is used in VersionRangeResolver, and means:Fixes: #2558