1. 找不到 org.eclipse:osgi:jar:3.6.2.R36x_v20110210
有两种解决方式:
第一种:该jar包只在仓库http://svn.apache.org/repos/asf/servicemix/m2-repo 提供,添加上该仓库即可。
第二种:该jar包在仓库http://repository.sonatype.org/content/groups/forge/也提供,不过坐标不同,需要把涉及POM的坐标更改为(大约需要更改两处):
<dependency>
<groupId>org.sonatype.tycho</groupId>
<artifactId>org.eclipse.osgi</artifactId>
<version>${equinox.version}</version>
</dependency>
注:原来的坐标是:
<dependency>
<groupId>org.eclipse</groupId>
<artifactId>osgi</artifactId>
<version>${equinox.version}</version>
</dependency>
2、找不到biz.aQute:bndlib:jar:0.0.313
对于这个jar,在中央库中有它的最新版本,只需要改一下版本号就可以了。
<dependency>
<groupId>biz.aQute</groupId>
<artifactId>bndlib</artifactId>
<version>1.50.0</version>
</dependency>
只需要修改以上两处,即可构建成功。
本文详细介绍了如何解决在使用Eclipse OSGI和aQute bndlib时遇到的依赖问题。通过将仓库添加到Maven配置中,并更新特定依赖的版本号,可以顺利构建项目。
8252

被折叠的 条评论
为什么被折叠?



