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
相關文章
相關標籤/搜索