We have a multi-module maven project. I have a use case where I want to know to get a list of all the dependencies which is being used in code with version:
- If its declared in pom and being used.
- Not declared in pom but still being used (transitively imported).
Bonus would be if the approach can exclude the deps which are being declared in pom but not being used in the code.
Please suggest the best way to achieve this. TIA.