Maven Learning

  • 时间:
  • 浏览:4

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

eg:

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

The main dependencies are called direct dependencies.

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

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

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