Repository navigation
Bundle the file and HTTP wagons used to load rulesUri - #1474
Merged
Merged
Conversation
Maven distributions may stop shipping wagon-file and wagon-http in lib/, which leaves the injected wagon map without file:, http: and https: entries. Declare the providers in the plugin and the enforcer rule so they come from the plugin realm.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
rulesUri(maven.version.rules) is loaded through the injectedMap<String, Wagon>, and thefile:,http:andhttps:entries came only from the providers Maven ships inlib/. On a distribution without them, the versions goals and themaxDependencyUpdatesenforcer rule fail with "Could not load specified rules from โฆ". This declareswagon-fileandwagon-http3.5.3 (runtime) in versions-maven-plugin and versions-enforcer, so they come from the plugin realm; versions-common stays free of them, andjcl-over-slf4jis excluded becausecommons-loggingis already on the plugin classpath.Verified:
display-dependency-updates -Dmaven.version.rules=<file:// and http:// URI>โ fails on master and passes with this change on a Maven 3.9.16 copy withoutlib/wagon-file*andlib/wagon-http*; passes on stock 3.9.16 and on Maven 4.0.0-rc-7 (stock and stripped). Unit tests and the rules-related ITs (it-use-latest-releases-003,it-rules-via-classpath-*,it-display-dependency-updates-issue-684-pom-based-rules,it-max-dependency-updates-*) pass; the full IT suite was not run.