Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
maven-dependency-tree-3.1.0
-
None
Description
DependencyCollectorBuilder#collectDependencyGraph returns a dependency graph containing transitive provided scope dependencies. This is inconsistent with Maven behavior, which removes transitive provided scope dependencies from the dependency graph:
This might be the root cause of https://issues.apache.org/jira/browse/MENFORCER-402 and https://issues.apache.org/jira/browse/MENFORCER-394
Note that transitive test scope dependencies are correctly filtered out using a dependency selector.
It seems to me that we can add another dependency selector to also filter out transitive provided scope dependencies:
I have submitted a PR to do this: https://github.com/apache/maven-dependency-tree/pull/9
Attachments
Issue Links
- fixes
-
MENFORCER-394 DependencyConvergence in 3.0.0 fails on provided scoped dependencies
- Closed
-
MENFORCER-402 RequireUpperBoundDeps now follow scope provided transitive dependencies
- Closed
- relates to
-
MENFORCER-407 Enforcer 3.0.0 breaks with Maven 3.8.4
- Closed
- links to