2011-08-21 60 views
1

如果我理解正確,SpringSource有一個公開的OBR,其中包含許多第三方JAR的OSGi包。我想在Eclipse中使用它,但我無法讓Eclipse連接到它。如何在Eclipse中配置SpringSource OBR?

我曾嘗試:

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」只是一個定義OSGi Bundles庫配置的XML文件。因此,如果我將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菲利克斯)

兼容3)「Eclipse更新站點」不是OBR(也不是Maven倉庫),儘管它也應該包含OSGi捆綁軟件。如果是這種情況,那麼它也沒有多大意義,因爲Eclipse基於OSGi。

回答

3

SpringSource EBR不是Eclipse更新站點,因此無法以此方式使用。至少目前它也不是OBR。但是Eclipse PDE並不使用OBR(儘管Bndtools)。

我覺得你可以用它作爲Maven倉庫。

+0

我已更新我的問題。你能評論嗎? –

+0

嗨塞巴斯蒂安。答案(3)是正確的:Eclipse更新站點不是OBR。他們實際上是「p2存儲庫」。 P2只是一種不同類型的存儲庫索引,我不確定是否存在SpringSource EBR內容。 –