歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> 編譯 Apache Karaf 2.2.9遇到找不到jar包問題的解決方案

編譯 Apache Karaf 2.2.9遇到找不到jar包問題的解決方案

日期:2017/2/28 14:52:13   编辑:Linux教程

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><SPAN >org.eclipse</groupId></SPAN>
<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>

只需要修改以上兩處,即可構建成功。

Copyright © Linux教程網 All Rights Reserved