ferstl / depgraph-maven-plugin

A Maven plugin that generates dependency graphs in various formats (DOT, GML, PlantUML, JSON and Text)
Apache License 2.0
554 stars 84 forks source link

targetIncludes 2 types of transitives #147

Open delanym opened 2 years ago

delanym commented 2 years ago

I can use -DtargetIncludes=:jackson-dataformat-yaml to show all uses of this dependency in my project.

I don't want to see the entire hierarchy of modules (all the modules that depend on the module that depends on :jackson-dataformat-yaml), so I add -DtransitiveExcludes=*

But now the problem is I only see direct dependencies on :jackson-dataformat-yaml If a module depends on a third-party dependency, and that dependency depends on :jackson-dataformat-yaml, it doesn't show.

How can I show all AND only the direct dependents of an artefact?

ferstl commented 2 years ago

This is not possible to achieve with the current filtering options. This would require some kind of option to "cut off" the transitive dependencies of a certain artifact, i.e. something like ˋtransitiveExcludesˋ but with keeping the matching artifacts in the graph.