Dependency
This lesson talks about adding artifacts as Maven dependencies and their management, one of the most important features of Maven.
One of the tasks Maven excels at is handling dependencies for a given project. It can also handle transitive dependencies, which means if your project P depends on a jar A, which in turn depends on jar B, then Maven would download both the dependencies for you. In this case, jar A will be referred to as a direct dependency while jar B will be considered a transitive dependency for your project P. If jar B is in turn dependent on jar C, and jar C is in turn dependent on jar D, Maven will also download jars C and D when building your project P. Jars B, C, and D will collectively be called as transitive dependencies.
Get hands-on with 1400+ tech skills courses.