Maven Learning - Direct Dependencies & Transitive Dependencies

Dependencies declared in your project's pom.xml file often have their own dependencies.

The main dependencies are called direct dependencies.

And the sub dependencies on which the direct dependencies relied on are called transitive dependencies.

eg:

You have a direct dependency called Hibernate Core, and the Hibernate Core requires JBoss Logging, dom4j, javaassist etc to function properly.

The dependencies such as dom4j, javaassist, JBoss logging are considered as your project's transitive dependencies.

The very important key benefit of Maven is that it automatically deals with transitive dependencies and includes them in your project.

转载于:https://www.cnblogs.com/davidgu/p/6187052.html

猜你喜欢

转载自blog.csdn.net/weixin_33716154/article/details/93803124