I have gone through differences between dependencymanagement and dependencies in maven but i am still unclear when to use
just dependencies
tag in parent pom and when to use dependenciesManagement
tag ?
My understanding is when my all child modules need to use same dependency version then we should declare the Dependencies under Dependencies
tag(without dependencyManagement
tag)
But on other hand if some of the child project need to use different version then we should declare the Dependencies under Dependencies
tag(which will be under dependencyManagement
tag). then Child modules can refer them with overridden version
Is that correct ?