【问题标题】:How do I configure the SpringSource OBR in Eclipse?如何在 Eclipse 中配置 SpringSource OBR?
【发布时间】:2011-08-21 10:21:21
【问题描述】:

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

[编辑] 在得到我的第一个答案后做了一些研究。我发现 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 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 的。

【问题讨论】:

    标签: repository osgi springsource


    【解决方案1】:

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

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

    【讨论】:

    • 嗨塞巴斯蒂安。答案 (3) 是正确的:Eclipse 更新站点不是 OBR。它们实际上是“p2 存储库”。 P2 只是一种不同的存储库索引,我不确定 SpringSource EBR 内容是否存在。
    猜你喜欢
    • 1970-01-01
    • 2011-01-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-09-03
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多