Re: [maven-resolver] DefaultDependencyCollector not collecting direct provided dependencies
ProjectDependencyResolver does what I expect for provided dependencies .
With DefaultDependencyCollector, provided-scope dependencies of the
root node are not picked up, because the root node itself is a
dependency (with a scope), making the provided-scope dependencies
With ProjectDependencyResolver, the root node is not a dependency. It
does not have a scope. Therefore provided-scope dependencies below the
root are direct dependencies.
Added a image to show the comparison . Case closed.