GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@slachiewicz slachiewicz commented Nov 7, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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.

All reactions
@slachiewicz slachiewicz added the documentation Improvements or additions to documentation label Nov 7, 2026
@slachiewicz
slachiewicz marked this pull request as ready for review November 7, 2026 21:46
@slachiewicz
slachiewicz force-pushed the agent/upgrade-guide branch from 878fc00 to 8699f40 Compare November 7, 2026 21:52
@slachiewicz slachiewicz mentioned this pull request Nov 7, 2026
Add the upgrade to 2.x page to the 1.9.x site #2281
Merged
gnodet-bot
gnodet-bot reviewed Nov 7, 2026
View reviewed changes

@gnodet-bot gnodet-bot left a comment

Copy link
Copy Markdown
Contributor

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.

All reactions
Comment thread src/site/markdown/upgrading-resolver.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/site/markdown/using-resolver-in-maven-plugins.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/site/markdown/upgrading-resolver.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

@slachiewicz
Rewrite the 1.x to 2.x upgrade guide and point deprecated API at its …
c96e373
…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.
@slachiewicz
slachiewicz force-pushed the agent/upgrade-guide branch from 8699f40 to c96e373 Compare November 7, 2026 22:01
@slachiewicz slachiewicz mentioned this pull request Nov 7, 2026
Describe the module renames in the upgrade guide #2283
Closed
gnodet-bot
gnodet-bot reviewed Nov 7, 2026
View reviewed changes

@gnodet-bot gnodet-bot left a comment

Copy link
Copy Markdown
Contributor

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.

All reactions
Comment thread src/site/markdown/upgrading-resolver.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/site/markdown/using-resolver-in-maven-plugins.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/site/markdown/upgrading-resolver.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

@slachiewicz
Quote the latest Maven 3.9.x release and fix the session-hook sentence
9d46a88
gnodet-bot
gnodet-bot reviewed Nov 7, 2026
View reviewed changes
Comment thread maven-resolver-test-util/src/main/java/org/eclipse/aether/internal/test/util/TestFileUtils.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

gnodet-bot
gnodet-bot reviewed Nov 7, 2026
View reviewed changes

@gnodet-bot gnodet-bot left a comment

Copy link
Copy Markdown
Contributor

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.

All reactions
Comment thread src/site/markdown/upgrading-resolver.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

@slachiewicz
Mark the trackingFilename key as not read under its 1.9.x name
826ae63
EnhancedLocalRepositoryManagerFactory reads aether.lrm.enhanced.trackingFilename
only; the nine other enhanced LRM keys fall back to their
aether.enhancedLocalRepository.* names through LocalPathPrefixComposerFactorySupport.
gnodet-bot
gnodet-bot reviewed Nov 8, 2026
View reviewed changes

@gnodet-bot gnodet-bot left a comment

Copy link
Copy Markdown
Contributor

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.

All reactions
Comment thread maven-resolver-test-util/src/main/java/org/eclipse/aether/internal/test/util/TestFileUtils.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@slachiewicz slachiewicz mentioned this pull request Nov 8, 2026
Read the 1.9.x name of the trackingFilename key as a fallback #2293
Merged
@slachiewicz
Say that Files.write writes the array once in the writeBytes deprecat…
8b0aa24
…ion note
gnodet-bot
gnodet-bot approved these changes Nov 8, 2026
View reviewed changes

@gnodet-bot gnodet-bot left a comment

Copy link
Copy Markdown
Contributor

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.

All reactions
@slachiewicz
slachiewicz merged commit 0a21d03 into master Nov 10, 2026
20 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@slachiewicz
slachiewicz deleted the agent/upgrade-guide branch November 10, 2026 14:28
@github-actions github-actions Bot added this to the 2.0.26 milestone Nov 10, 2026
@github-actions github-actions Bot assigned slachiewicz Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@gnodet-bot gnodet-bot gnodet-bot approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@slachiewicz slachiewicz

Labels

documentation Improvements or additions to documentation

Projects

None yet

Milestone

2.0.26

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@slachiewicz @gnodet-bot
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.