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.

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.

 

目录
相关文章
|
6月前
|
Java 数据库连接 Maven
Maven Optional
Maven Optional
86 1
|
6月前
|
Java Maven
maven:the pom for XXX is missing, no dependency information available
maven:the pom for XXX is missing, no dependency information available
487 0
Plugin ‘maven-clean-plugin:3.1.0‘ not found
Plugin ‘maven-clean-plugin:3.1.0‘ not found
221 0
|
XML Java 测试技术
Maven的dependencies
Maven的dependencies
|
Java easyexcel Maven
maven中dependencyManagement与dependencies的区别与联系
maven中dependencyManagement与dependencies的区别与联系
385 0
|
Java Maven
IDEA、Resolving Maven dependencies
IDEA、Resolving Maven dependencies
294 0
IDEA、Resolving Maven dependencies
|
Java 关系型数据库 MySQL
Gradle 的Dependencies
Gradle 的Dependencies
Gradle 的Dependencies
|
Java 编译器 Maven
maven项目build时出现 No compiler is provided in this environment.错误
maven项目build时出现 No compiler is provided in this environment.错误
maven项目build时出现 No compiler is provided in this environment.错误
|
Java Maven 容器
Maven - dependencies & dependencyManagement 区别
Maven - dependencies & dependencyManagement 区别
130 0
Maven - dependencies & dependencyManagement 区别