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.

 

目录
相关文章
|
14天前
|
Java 数据库连接 Maven
Maven Optional
Maven Optional
21 1
|
14天前
|
Java 应用服务中间件 Maven
Maven Scope
Maven Scope
19 0
|
1月前
|
Java Maven
maven:the pom for XXX is missing, no dependency information available
maven:the pom for XXX is missing, no dependency information available
31 0
|
9月前
|
Java Maven Android开发
成功解决maven打war包报错:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2
成功解决maven打war包报错:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2
|
11月前
Plugin ‘maven-clean-plugin:3.1.0‘ not found
Plugin ‘maven-clean-plugin:3.1.0‘ not found
135 0
|
11月前
|
XML Java 测试技术
Maven的dependencies
Maven的dependencies
|
Java easyexcel Maven
maven中dependencyManagement与dependencies的区别与联系
maven中dependencyManagement与dependencies的区别与联系
353 0
|
Java Maven
IDEA、Resolving Maven dependencies
IDEA、Resolving Maven dependencies
235 0
IDEA、Resolving Maven dependencies
|
Java Maven Windows
解决 Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile
解决 Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile
2035 0
|
Java 关系型数据库 MySQL
Gradle 的Dependencies
Gradle 的Dependencies
Gradle 的Dependencies