subro
subro

Reputation: 114

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.

Upvotes: 1

Views: 93

Answers (1)

J Fabian Meier
J Fabian Meier

Reputation: 35903

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

Upvotes: 1

Related Questions