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

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>

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章