What's the difference between <dependencyManagement> and <dependencies> in Pom.xml?

Asked 2 years ago

They sound the same but I'm guessing they are not? I've been reading the docs but don't really understand it.

Kole Delacruz

Monday, August 22, 2022

The main difference between <dependencies> and <dependencyManagement> is that artifacts specified inside <dependencies> will always be included as a dependancy. <dependencyManagement> will only be included in the child module if they were specified of <dependencies> Think of dependencyManagement as the place to control versions of the artifacts used in transitive dependencies.

Write an answer...


Please follow our  Community Guidelines

Can't find what you're looking for?