What is the difference between dependencyManagement
and dependencies
?
I have seen the docs at Apache Maven web site.
It seems that a dependency def
There are a few answers outlining differences between
and
tags with maven.
However, few points elaborated below in a concise way:
allows to consolidate all dependencies (used at child pom level) used across different modules -- clarity, central dependency version management
allows to easily upgrade/downgrade dependencies based on need, in other scenario this needs to be exercised at every child pom level -- consistency
tag is always imported, while dependencies provided at
in parent pom will be imported only if child pom has respective entry in its
tag.