From the course: Introducing Maven

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Dependency management

Dependency management

From the course: Introducing Maven

Start my 1-month free trial

Dependency management

- [Instructor] We have discussed already how parent poms can help an organization control the actual dependencies used by projects within the organization. The mechanism for doing this is most often through the use of dependency management. To illustrate how this works let's implement the dependency management section in our parent pom for our project. So, let's jump into our IDE. The first thing that I want you to do is to go into the sub-project and cut the properties. Now go to the parent pom and paste those properties in. Now, in order to test this we're going to go back to the root of our project end terminal and just do a maven clean verify. If this runs to completion, we know that the properties have actually moved from the parent pom down to the children which is what we would expect. And indeed we got a build success. Now, let's jump back over into our parent pom and we're going to put in a dependency management section. Now, to our dependency management section, we're going…

Contents