maven 依赖原则

maven 依赖原则

间接依赖路径最短优先

a->b->c1.0
a->e->f->c1.1

====>c1.0

申明顺序优先

<!-- test1 -> c1.0 -->
<dependency>
	<groupId>org.test</groupId>
	<artifactId>test1</artifactId>				
</dependency>
<!-- test2 -> c2.0 -->
<dependency>
	<groupId>org.test</groupId>
	<artifactId>test2</artifactId>				
</dependency>

======>c1.0
原文地址:https://www.cnblogs.com/dawnheaven/p/7098002.html