1
我有添加依賴在pom.xml中,如:依賴XML文件
<dependency>
<groupId>org.opendaylight.controller</groupId>
<artifactId>features-restconf</artifactId>
<version>1.2.1-Lithium-SR1</version>
<classifier>features</classifier>
<type>xml</type>
<scope>runtime</scope>
</dependency>
這種依賴是一個XML文件,它是這樣的:(爲簡單起見)
<feature name ='odl-mdsal-apidocs' version='1.2.1-Lithium-SR1' description="OpenDaylight :: MDSAL :: APIDOCS">
<feature version='1.2.1-Lithium-SR1'>odl-restconf</feature>
<bundle>mvn:org.opendaylight.controller/sal-rest-docgen/1.2.1-Lithium-SR1</bundle>
<bundle>mvn:com.fasterxml.jackson.core/jackson-annotations/2.3.2</bundle>
<bundle>mvn:com.fasterxml.jackson.core/jackson-core/2.3.2</bundle>
<bundle>mvn:com.fasterxml.jackson.core/jackson-databind/2.3.2</bundle>
<bundle>mvn:com.fasterxml.jackson.datatype/jackson-datatype-json-org/2.3.2</bundle>
<bundle>mvn:com.fasterxml.jackson.module/jackson-module-jaxb-annotations/2.3.2</bundle>
<bundle>mvn:com.fasterxml.jackson.jaxrs/jackson-jaxrs-base/2.3.2</bundle>
</feature>
我發現所有在xml文件中描述爲< bundle>的依賴項都將被下載到本地存儲庫中。所以我認爲這是另一種處理項目依賴的方法。但是我在pom.xml中找不到有關這種依賴關係使用情況的任何信息。
我在哪裏可以找到關於這部分Maven的資料?有沒有文件或教程?