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.

 

目录
相关文章
|
搜索推荐 IDE 开发工具
IDEA自定义右键菜单
IDEA自定义右键菜单
2938 1
|
缓存 Java Go
解决Spring Data JPA查询存在缓存问题及解决方案
解决Spring Data JPA查询存在缓存问题及解决方案
1220 0
|
算法 Dubbo NoSQL
Java中5种List的去重方法及它们的效率对比,你用对了吗?
01、使用两个for循环实现List去重(有序) /**使用两个for循环实现List去重(有序) * * @param list * */ public static List removeDuplicationBy2For(List<Integer> list) { for (int i=0;i<list.size();i++) { for (int j=i+1;j<list.size();j++) { if(list.get(i).equa
25263 2
Java中5种List的去重方法及它们的效率对比,你用对了吗?
|
Ubuntu 网络安全 数据安全/隐私保护
如何在 Ubuntu 上创建一个 SSH CA 以验证主机和客户端
如何在 Ubuntu 上创建一个 SSH CA 以验证主机和客户端
305 0
|
XML JavaScript API
API接口:原理、设计与应用
API,全称应用程序接口,是一些预先定义的函数,目的是提供应用程序与开发人员以访问一组例程的能力,我们可以在不暴露各内部例程的情况下,使用这些例程。API是构建在操作系统或应用程序之间的接口,它充当一个桥梁或纽带,使得不同的应用程序或系统之间可以相互交流和交互。
|
存储 NoSQL Java
在Spring Boot中使用Redis生成订单号,并且保证当天有效性
在Spring Boot中使用Redis生成订单号,并且保证当天有效性
681 4
|
存储 分布式计算 资源调度
|
程序员 Go 网络架构
不看就落后了,Go 1.22 中更好的http router
不看就落后了,Go 1.22 中更好的http router
|
XML 自然语言处理 API
个人微信开发api文档
个人微信开发api文档