我遇到了一个问题,我有以下两个依赖关系:
org.apache.felix » org.apache.felix.utils » 1.6.0
和
com.github.rotty3000 » phidias » 0.3.2
它们都对org.osgi.core有传递依赖,felix依赖于版本4.1.0,而phidias依赖于版本5.0.0。
我们需要版本5.0.0来正确编译我们的代码。
如果我将我的依赖关系设置为:
<dependencies>
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.utils</artifactId>
<version>1.6.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.github.rotty3000</groupId>
<artifactId>phidias</artifactId>
<version>0.3.2</version>
<scope>compile</scope>
</dependency>
</dependencies>
<我们想按字母顺序排列依赖项,这样Felix就会在顶部,有没有办法强制OSGI.core解析5.0.0版本?
<谢谢!