1

如果我理解正确,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.

那么,我打算使用什么 URL?

[编辑] 得到我的第一个答案后做了一些研究。我发现这个网站声称有一个公共 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 Bundles 的存储库,而不是“OSGi Bundle Repository”。这对我来说毫无意义。重点是什么?

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

因此,如果我将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 的。

4

1 回答 1

3

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

我认为您可以将其用作 Maven 存储库。

于 2011-08-21T13:21:17.593 回答