Maven Dependency Tree
来源:互联网 发布:三菱刺刀淘宝专卖店 编辑:程序博客网 时间:2024/06/06 07:21
Mavne的依赖树可以用来查看一个项目的依赖冲突。举个例子,想找出为什么common collection 2.0这个包会被maven的依赖树引用到,可以在该项目的目录下运行下面这行命令:
mvn dependency:tree -Dverbose -Dincludes=commons-collections
verbose 标志是用来告诉maven依赖树将那些被忽略掉的依赖包也显示出来,比如在这个例子中,会输出:
这样我们就可以看到 common-collections 2.0 在依赖树中被选中了,因为maven用是"nearest-wins" (最近获胜)的策略。可以出2.1版本的依赖深度是3,面2.0版本的依赖深度是2,所以选了2.0.[INFO] [dependency:tree][INFO] org.apache.maven.plugins:maven-dependency-plugin:maven-plugin:2.0-alpha-5-SNAPSHOT[INFO] +- org.apache.maven.reporting:maven-reporting-impl:jar:2.0.4:compile[INFO] | \- commons-validator:commons-validator:jar:1.2.0:compile[INFO] | \- commons-digester:commons-digester:jar:1.6:compile[INFO] | \- (commons-collections:commons-collections:jar:2.1:compile - omitted for conflict with 2.0)[INFO] \- org.apache.maven.doxia:doxia-site-renderer:jar:1.0-alpha-8:compile[INFO] \- org.codehaus.plexus:plexus-velocity:jar:1.1.3:compile[INFO] \- commons-collections:commons-collections:jar:2.0:compile
阅读全文
0 0
- maven 之 dependency:tree
- maven dependency tree
- Maven Dependency Tree
- maven dependency tree
- Maven Dependency
- Maven-dependency
- Maven Dependency插件Goal tree分析工程artifacts依赖
- distro packages dependency tree
- mvn dependency:tree -Dverbose
- Maven dependency and repository
- Maven Dependency设置,详解!
- Maven Dependency设置,详解!
- Maven Dependency设置
- Maven dependency and repository
- maven transitive dependency
- Maven之 Dependency & Repository
- 有用的Maven dependency
- Maven find Dependency
- traceroute article
- 如何在Java Unit Test中mock 静态方法
- DOM 常用到的功能模块
- POJ 3000 Frogger 笔记
- Git 常用的命令
- Maven Dependency Tree
- ElasticSearch 翻页查询
- [Leetcode 85] Maximal Rectangle
- 怎么判断ElasticSearch index 和 type 存不存在
- Elasticsearch中的store field跟non-store field的区别
- Python (2.6)常用的API
- 第一次使用博客记录学习生活------2017.7.9
- List Comprehensions (列表推导式)
- TensorFlow系列(2)——KNN算法实现