Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.6.x][MRESOLVER-235] Fix dependency management issue #146

Closed

Conversation

gnodet
Copy link
Contributor

@gnodet gnodet commented Jan 20, 2022

This PR provides a fix for MRESOLVER-235 / MNG-7003.
However, the fix breaks two ITs: mng4720 and mng4396.
For mng4720, so core of the IT is not broken, but as specifically commented in the IT see https://github.com/apache/maven-integration-testing/blob/master/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng4720DependencyManagementExclusionMergeTest.java#L70, one of the dependency is not included anymore.
The PR contains unit tests that replicate the ITs for mng4720 and for MNG-7003 (available at https://github.com/gnodet/maven-integration-testing/tree/MNG-7003). I'm not sure there's any way to fix both at the same time.

…dependency graph

# Conflicts:
#	maven-resolver-util/src/main/java/org/eclipse/aether/util/graph/manager/ClassicDependencyManager.java
@cstamas
Copy link
Member

cstamas commented Feb 16, 2023

Resolver has 3 DependencyManager implementations: "classic" (so far all Maven 3+ versions used it), "transitive" (almost same as "classic" sans the 2 depth thing) and "default" (unsure about the intent here).

The issue PR would modify the "classic" depMgr, while it would then become (almost) same as "transitive" is. Hence, am rejecting the PR, and the issue altogether, as to me this seems like just a need for another depMgr exposed in Maven?

See:

@cstamas cstamas closed this Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants