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 — [MDEP-969] Replace maven-dependency-tree with Maven Resolver by slachiewicz · Pull Request #1712 · apache/maven-dependency-plugin

Conversation

@slachiewicz

@slachiewicz slachiewicz commented Sep 30, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Member

dependency:tree builds its tree from ProjectDependenciesResolver (default) and from RepositorySystem.collectDependencies with verbose conflict resolution and dependency management (-Dverbose), through a small plugin-internal node model; maven-dependency-tree is dropped. includes/excludes filtering is a single recursive copy of that tree, which replaces the Collecting, Filtering, Pruning and Building visitors. Part of retiring maven-dependency-tree, apache/maven-dependency-tree#150.

The verbose scope check compares scopes with equals instead of the reference comparison inherited from maven-dependency-tree. That removes entries such as maven-settings:jar:3.9.16:provided (scope not updated to provided), which named the node's own scope; entries naming a wider scope Maven did not apply are unchanged.

Fixes #1479.

Verified: dependency:tree in every output type, with and without -Dverbose, plus scope, includes, excludes and combined include/exclude variants, on this plugin, maven-resolver-ant-tasks, maven-doxia and maven-surefire (112 outputs) → identical to master, except graphml/tgf node ids, which are identity hashes and change on every run, and the same-scope scope not updated to entries above; mvn verify -P run-its → 438 tests, 102 ITs. Only run on Maven 3.9.x.

Sorry, something went wrong.

Uh oh!

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

All reactions
@slachiewicz
[MDEP-969] Replace maven-dependency-tree with Maven Resolver
97a3d68
maven-dependency-tree is obsolete. The tree goal now builds its nodes from
ProjectDependenciesResolver and RepositorySystem; output is byte-identical.
@slachiewicz slachiewicz added the maintenance label Sep 30, 2026
@slachiewicz
slachiewicz marked this pull request as ready for review September 30, 2026 17:31
@slachiewicz
Filter the dependency tree by copying it
8451256
With a plugin-owned node model, one recursive copy replaces the Collecting,
Filtering, Pruning and Building visitor chain; output is unchanged.
This was referenced Sep 30, 2026
Planned releases — Q4 2026 (Doxia stack + plugins + shared deps) apache/maven#13085
Open
Simplifications for the 3.x lines apache/maven#13309
Closed
@slawekjaranowski
slawekjaranowski requested review from cstamas and slawekjaranowski September 30, 2026 21:39
slawekjaranowski
slawekjaranowski reviewed Sep 30, 2026
View reviewed changes
Comment thread src/main/java/org/apache/maven/plugins/dependency/tree/VerboseJavaScopeSelector.java Resolved

Uh oh!

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

@slachiewicz
Compare scopes with equals in the verbose scope selector
5d8d517
@cstamas

cstamas commented Oct 2, 2026

Copy link
Copy Markdown
Member

Cool!

All reactions

Sorry, something went wrong.

Uh oh!

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

slawekjaranowski
slawekjaranowski approved these changes Oct 2, 2026
View reviewed changes
@slachiewicz
slachiewicz merged commit defaf89 into master Oct 5, 2026
22 checks passed

Uh oh!

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

@slachiewicz
slachiewicz deleted the agent/mdep-969-resolver-tree branch October 5, 2026 21:23
@github-actions github-actions Bot added this to the 3.11.1 milestone Oct 5, 2026
@slachiewicz slachiewicz mentioned this pull request Oct 5, 2026
Retire maven-dependency-tree in favour of Maven Resolver apache/maven-dependency-tree#150
Closed
1 of 4 tasks
@github-actions github-actions Bot assigned slachiewicz Oct 5, 2026
This was referenced Oct 5, 2026
Ignore scopes outside the Java scopes in the verbose scope selector #1716
Merged
NIFI-16434 Replace maven-dependency-tree and maven-compat with the Maven and Resolver APIs apache/nifi-maven#54
Open
Measure the impact of porting Maven components and plugins to the Maven 4 API apache/maven#13302
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@slawekjaranowski slawekjaranowski slawekjaranowski approved these changes
@cstamas cstamas Awaiting requested review from cstamas

Uh oh!

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

Assignees

@slachiewicz slachiewicz

Labels

maintenance

Projects

None yet

Milestone

3.12.0

Development

Successfully merging this pull request may close these issues.

[MDEP-969] Use resolver api in dependency:tree

Uh oh!

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

3 participants

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