首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 服务器 > Apache >

编译 Apache Karaf 2.2.9遇到找不到jar包有关问题的解决方案

2012-09-09 
编译 Apache Karaf 2.2.9遇到找不到jar包问题的解决方案1. 找不到 org.eclipse:osgi:jar:3.6.2.R36x_v2011

编译 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>biz.aQute</groupId><artifactId>bndlib</artifactId><version>1.50.0</version></dependency>

只需要修改以上两处,即可构建成功。

热点排行