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.

Transitive dependencies

Transitive dependencies

From the course: Introducing Maven

Start my 1-month free trial

Transitive dependencies

- [Instructor] One of the hardest aspects to grasp about Maven is how it handles dependency resolution, specifically through the concept of transitive dependencies. So, you may be asking yourself at this point, what is this transitive concept? In short, a transitive dependency is a dependency of a dependency, and so on. It provides a mechanism to not have to actually declare all of your actual dependencies, instead focusing on only those things that you know about. This reduces the need to know the inner workings of libraries while also isolating you from changes when upgrading versions because if your dependency needs three dependencies, you don't need to know what those three are. Maven will actually bring them onto the class path for you through this transitive model. Now, as you might imagine, since software is managing this transitive dependency process, there are rules, and these rules can get you if you don't know them. The first rule is that when two versions of the same…

Contents