Search code examples
mavendependenciesmaven-dependency-pluginmaven-dependency

Listing maven dependencies in a directory


I want to get all the maven dependencies list for a directory containing multiple projects. I can go inside each project and use command mvn dependency:tree and consolidate all of them manually.

Is there anyway (script or command) i can get consolidate list for all the project dependencies within parent directory.

Thanks for help.


Solution

  • You can define a dummy project, add all your projects as dependencies and then call dependency:list on this dummy project.