GeezerVison is showing github.com — Rewrite the 1.x to 2.x upgrade guide and point deprecated API at its replacements by slachiewicz · Pull Request #2280 · apache/maven-resolver
Conversation
slachiewicz
commented
Nov 7, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Downstream projects moving from Resolver 1.9.x to 2.x had the deprecation Javadoc and a page that still called 2.x "upcoming" to go on. This rewrites the Upgrading Resolver page as a step-by-step guide and fills the @deprecated tags that named no replacement.
The page now covers what a consumer project actually hits, in order: what 1.9.x deprecates and 2.x removes, bootstrapping without ServiceLocator through the two supplier modules, the File to Path renames, the Util helpers, module coordinates, the configuration keys that moved to aether.transport.* and aether.lrm.*, and the changed defaults. The key table marks which old keys 2.x still reads (userAgent, smartChecksums, checksums.algorithms, enhancedLocalRepository.*, syncContext.named.time); the others are ignored silently. The plugin page gains the Maven to Resolver version table and the rules for a plugin that runs in Maven 3.9 as well as in Maven 3.10 or 4, which both ship 2.x.
Three statements of the old page are gone because they do not hold on the 2.x line: ArtifactProperties, DefaultArtifactType and the DependencyFilterUtils class path filters are not deprecated, and dependency scopes are not removed but delegated to ScopeManager.
Code changes are Javadoc only. The util ScopeDependencySelector and OptionalDependencySelector pointed at an internal package; the spi.locator shims in supplier-mvn3, DefaultVersionFilterContext#set, the NamedLockFactoryAdapter time constants and the File helpers in TestFileUtils named no replacement; one @Deprecated sat before its Javadoc comment.
Verified: mvn -N site renders the page with the three pre-existing heading anchors unchanged (Upgrading_from_1.x_to_2.x, Session_handling_changes, Consumer_Project_Changes_.28if_more_needed.29); javadoc:javadoc and spotless:check on the four touched modules pass.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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.
Good documentation improvement — the step-by-step upgrade guide and @deprecated fixes are a clear win.
Two instances of stale version data and a minor grammar nit in the page the PR edited.
This review was generated by an AI agent, Hermès on behalf of @gnodet.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…replacements
The page still called 2.x upcoming and said that ArtifactProperties,
DefaultArtifactType and the DependencyFilterUtils class path filters are
deprecated and that dependency scopes are removed. None of that holds on the
2.x line: scopes are delegated to ScopeManager and the Maven 3 helpers stay.
The configuration key renames of 2.0.0 were documented nowhere.
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.
Following up on my earlier review — 0 of the 3 issues have been addressed.
Stale 3.9.x version row — ⚠️ still open in both files.
Grammar nit — ⚠️ still open.
The new content (Steps 3–6, the full config-key table, the module coordinates section) is well-structured and accurate. Maven 4.0.0-rc-7 bundles 2.0.23 and Maven 3.10.0 bundles 2.0.24 are correct. The Javadoc-only Java changes all look clean.
This review was generated by an AI agent, Hermès on behalf of @gnodet.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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.
Thorough and accurate rewrite of the upgrade guide — the restructuring, the "required changes" section, and the deprecated → new key table are all much clearer than before.
One factual inaccuracy to fix before merging:
This review was generated by an AI agent, Hermès on behalf of @gnodet.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
EnhancedLocalRepositoryManagerFactory reads aether.lrm.enhanced.trackingFilename
only; the nine other enhanced LRM keys fall back to their
aether.enhancedLocalRepository.* names through LocalPathPrefixComposerFactorySupport.
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.
Following up on my earlier review — both open issues are addressed.
trackingFilename backward-compat claim — ✅ fixed: the key is now correctly split out with no in the last column.
Grammar nit ("themselves" → "itself") — ✅ fixed.
One small precision issue on the new Javadoc for writeBytes:
This review was generated by an AI agent, Hermès on behalf of @gnodet.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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.
Previous finding addressed — writeBytes Javadoc now correctly notes that Files.write(Path, byte[]) writes the array once, so callers with repeat > 1 must build the repeated bytes first.
The new content (Steps 1–6, the config-key table, the module-coordinates section, the plugin guide additions) is factually accurate: version numbers, priority values, Java-version requirements, and the compat-baseline claim (1.9.18) all match the codebase.
LGTM.
This review was generated by an AI agent, Hermès on behalf of @gnodet.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
1 more reviewer
Reviewers whose approvals may not affect merge requirements
Uh oh!
There was an error while loading. Please reload this page.
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|