Question

I have a deep hierarchy of maven projects. The top level projects are pure aggregation projects: they do not define dependencies themselves and just enumerate the child projects that have a lot of dependencies each one.

I know how to get dependencies report for each project. The problem is that the information is not propagated automatically to upper level project. For example if I have project "Base" and 2 sub-projects "One" and "Two" I can see dependencies report (dependenices.html) for each one of child projects but do not see total report on Base project level.

Is there a way to achieve such report? My current workaround is to write program that parses all "dependencies.html" files and creates total report, but it will take several hours to implement such code.

Is there any other solution? Is it probably possible to make define in pom that base project depends on all libraries of its child projects?

Was it helpful?

Solution

Maybe dependency:tree is what you're looking for:

http://maven.apache.org/plugins/maven-dependency-plugin/tree-mojo.html

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top