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 — Replace custom `GraphLogger` with `DependencyGraphDumper` in dependency resolution by slawekjaranowski · Pull Request #12639 · apache/maven

Conversation

@slawekjaranowski

@slawekjaranowski slawekjaranowski commented Jul 30, 2026

Copy link
Copy Markdown
Member

Refactored the dependency graph logging by removing the custom GraphLogger implementation in both DefaultProjectDependenciesResolver and DefaultPluginDependenciesResolver and replacing it with DependencyGraphDumper.

Simplifies code and leverages existing utility for consistent logging.

Sorry, something went wrong.

Uh oh!

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

All reactions
@slawekjaranowski
Replace custom GraphLogger with DependencyGraphDumper in dependen…
17f4651
…cy resolution

Refactored the dependency graph logging by removing the custom `GraphLogger` implementation
in both `DefaultProjectDependenciesResolver` and `DefaultPluginDependenciesResolver`
and replacing it with `DependencyGraphDumper`.

Simplifies code and leverages existing utility for consistent logging.
@slawekjaranowski

slawekjaranowski commented Jul 30, 2026

Copy link
Copy Markdown
Member Author

similar to:

  • [MNG-8045] Use DependencyGraphDumper instead of own implementation #1404
All reactions

Sorry, something went wrong.

Uh oh!

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

@slawekjaranowski slawekjaranowski self-assigned this Jul 30, 2026
@slawekjaranowski slawekjaranowski added mvn3 maintenance labels Jul 30, 2026
@slawekjaranowski
slawekjaranowski requested review from cstamas and gnodet July 30, 2026 17:20
gnodet
gnodet approved these changes Jul 30, 2026
View reviewed changes

@gnodet gnodet 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.

Clean refactoring that removes ~166 lines of duplicated custom GraphLogger inner classes from both DefaultProjectDependenciesResolver and DefaultPluginDependenciesResolver, replacing them with the library-provided DependencyGraphDumper from maven-resolver-util (already a dependency).

This is a good change:

  • The two GraphLogger classes had "Keep this class in sync with..." comments, indicating a recognized maintenance burden. This duplication is now eliminated.
  • DependencyGraphDumper provides richer diagnostic output (tree-style indentation, range membership, conflict winner info) consistent with how Maven 4's impl/maven-core already uses the same DependencyGraphDumper(logger::debug) pattern.
  • The minor format differences (tree-style +-/\-/| instead of 3-space indent, [scope] instead of :scope) are improvements to diagnostic output, not a public API contract.
  • No tests exist for the old debug graph logging, which is expected — this is diagnostic output.

This review was generated by an AI agent and may contain inaccuracies. Please verify all suggestions before applying.

Claude Code on behalf of gnodet

Sorry, something went wrong.

Uh oh!

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

All reactions
cstamas
cstamas approved these changes Jul 30, 2026
View reviewed changes
@slawekjaranowski
slawekjaranowski merged commit 9e30708 into apache:maven-3.10.x Jul 30, 2026
18 checks passed

Uh oh!

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

@slawekjaranowski
slawekjaranowski deleted the rm-graphlogger branch July 30, 2026 20:46
@github-actions github-actions Bot added this to the 3.10.0 milestone Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@cstamas cstamas cstamas approved these changes
@gnodet gnodet gnodet approved these changes

Uh oh!

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

Assignees

@slawekjaranowski slawekjaranowski

Labels

maintenance mvn3

Projects

None yet

Milestone

3.10.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

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

3 participants

@slawekjaranowski @cstamas @gnodet
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.