如何在Eclipse中配置SpringSource OBR?

时间:2011-08-21 10:21:22

标签: repository osgi springsource

如果我理解得当,SpringSource有一个公共OBR,它包含许多第三方jar的OSGi包。我想在Eclipse中使用它,但我无法让Eclipse连接它。

我试过了:

http://ebr.springsource.com

它在那里挂了很久,然后返回错误:

Error reading update site http://ebr.springsource.com.
The XML stream is not a valid default "site.xml" file.
The root tag is not site.

我试过了:

http://ebr.springsource.com/repository

快速返回错误:

No repository found at http://ebr.springsource.com/repository.

那么,我打算用什么网址?

[编辑]在得到我的第一个答案后做了一些研究。我发现this site声称有一个公共OBR存储库列表:

OSGi Bundle Repository:
http://www.osgi.org/obr/browse?cmd=repository&_xml=1

Spring Enterprise Bundle Repository:
http://sigil.codecauldron.org/spring-external.obr
http://sigil.codecauldron.org/spring-release.obr

但它们都不适用于Eclipse。我现在更加困惑。

我(我想)理解的是:

1)的SpringSource EBR是OSGi软件包的储存库,而不是一个 “OSGi包库”。这对我来说毫无意义。有什么意义?

2)“OSGi Bundle Repository”只是一个XML文件,它定义了OSGi Bundle的存储库配置。

所以,如果我将http://sigil.codecauldron.org/spring-external.obr提供给Eclipse,而不是http://ebr.springsource.com,我希望Eclipse使用该文件的内容来访问http://ebr.springsource.com,但它不起作用

所以可能的原因之一是:

1)http://sigil.codecauldron.org/spring-external.obr已过时或错误

2)http://sigil.codecauldron.org/spring-external.obr与Eclipse不兼容(显然,它与Apache Felix一起使用)

3)“Eclipse更新站点”不是OBR(也不是Maven存储库),尽管它也应该包含OSGi包。如果是这种情况,那么它也没有多大意义,因为Eclipse是基​​于OSGi的。

1 个答案:

答案 0 :(得分:3)

SpringSource EBR不是Eclipse更新站点,因此不能以这种方式使用它。它至少目前也不是OBR。但Eclipse PDE无论如何都不使用OBR(尽管Bndtools确实如此)。

我认为你可以将它用作Maven存储库。