From the course: Introduction to Maven
Unlock this course with a free trial
Join today to access over 25,100 courses taught by industry experts.
Dependency management - Maven Tutorial
From the course: Introduction to Maven
Dependency management
- [Instructor] We've already discussed how parent POMs can help an organization control the actual dependencies used by projects within that organization. The mechanism for doing this is most often through the use of dependency management, and that's what we're going to do next. So what I want you to do is to open up your code, and we're actually going to open up both of our POM files this time. So let's start with learning-maven, go ahead and open it up. And then I want you to open up the POM for the learning-maven-presidents. Now the first thing that we're going to do is we're actually going to cut out the properties from the child and bring them into the parent. I'm going to go ahead and just remove this property section. Now I'm just going to show you that properties are transitive from the parent. So at the parent level, if I execute a mvn clean verify, because this is set up not only as a parent, but as a reactor, it will build the child project. So we'll let it do its thing…