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>
只需要修改以上两处,即可构建成功。

在编译Apache Karaf 2.2.9时遇到了找不到org.eclipse.osgi:jar:3.6.2.R36x_v20110210的问题。提供了两种解决方案:一是添加http://svn.apache.org/repos/asf/servicemix/m2-repo仓库;二是将POM中相关坐标改为http://repository.sonatype.org/content/groups/forge仓库中的坐标进行替换。
236

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



