2014-01-17 43 views
17

我在哪裏可以找到Spring 4的OSGi捆綁包?我檢查了http://ebr.springsource.com/,但只能找到Spring 3.2.x,並且Maven Central中的工件不是捆綁包。我在哪裏可以找到Spring 4 OSGi捆綁包

澄清

我不是在尋找春天DM或相似。我正在尋找OSGi捆綁的「Spring框架」JAR(Spring-Core,Spring-beans,spring-context ......)。我不想在OSGi環境中創建應用程序上下文。我只需要OSGi環境中的(例外)類。

+0

這個線程http://www.theserverside.com/discussions/thread.tss?thread_id=71606表明它所有的移動到http://www.eclipse.org/gemini/前一段時間。 – pd40

+1

我讀它的方式是Spring DM。這不是我要找的。我只是在尋找Spring-Core,Spring-context,spring-beans,... OSGi包。 –

+0

好問題。我在https://www.versioneye.com/java/org.springframework:spring-core/4.0.0.RELEASE找到了回購清單。在3.2.5之後似乎捆綁不在那裏。 – pd40

回答

16

春天將支持任何進一步發佈爲OSGi包。官方的支持已經停止了與彈簧3.2.4(雖然你會發現3.2.5文物here,矛盾在Eclipse Forum的發言)

格林諾明從春源承認,在一些地方,在這裏看到:

然而,有希望。在Karaf - dev列表中,可以看到他們打算在ServiceMix項目中支持Spring庫。整個線程的細節見here

13

春源停止創建與OSGI heaaders去年罐子: http://www.infoq.com/news/2012/10/spring-osgi-gradle/

我不認爲你會得到包含OSGi bundle了春天的官方行家回購。我們經常使用http://ebr.springsource.com/作爲OSGI軟件包,但即使在3.2之後也不包含任何版本

由於回購率低,無法添加評論,因此添加爲答案。

+0

某些官員是否會很好,無論這些捆綁包是否最終都會顯示在EBR中。 –

6

我必須說,將Spring遷移到OSGi仍然存在於Apache ServiceMix中。 獲取最新版本(4.0.2.RELEASE)支持OSGi的清單中的春天文物maven repo

+0

這不再是事實。隨着Apache Servicemix 5.1.1的發佈,Spring 4.0.2.RELEASE osgi包不再可用。 –

+0

更新:Spring 4.0.5發佈再次回到Servicemix 5.3.0 –

13

我發現ServiceMix提供了OSGi-fy Spring捆綁軟件, 4.1.4, http://repo2.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.spring-aop/

我想在我的OSGi包項目,設置dependeny這樣的:

在菲利克斯
<dependency> 
     <groupId>org.apache.servicemix.bundles</groupId> 
     <artifactId>org.apache.servicemix.bundles.spring-core</artifactId> 
     <version>4.1.1.RELEASE_3</version> 
</dependency> 

運行一個發現衝刺束被激活:

START LEVEL 1 
ID|State  |Level|Name 
... 
5|Resolved | 1|Apache ServiceMix :: Bundles :: spring-expression (4.1.1.RELEASE_3) 
6|Active  | 1|Apache Felix Gogo Command (0.14.0) 
7|Active  | 1|Apache Felix Gogo Runtime (0.12.1) 
8|Active  | 1|Apache Felix Gogo Shell (0.10.0) 
... 
10|Active  | 1|Apache ServiceMix :: Bundles :: spring-context (4.1.1.RELEASE_3) 
11|Active  | 1|Apache ServiceMix :: Bundles :: spring-core (4.1.1.RELEASE_3) 
.... 

但在它的最新版本5.4.0中,ServiceMix只包含spring 3.2.11。

在我的OSGi環境中使用spring 4.1.1有什麼風險嗎?

+0

我發現在OSGi環境中使用Spring有一個問題.Spring無法加載模式'http://www.springframework.org/schema/ bean/spring-beans-4.0.xsd'資源嵌入到spring bundle.XmlBeanDefinitionStoreException中,當創建沒有Internet連接的ClassPathXmlApplicationContext時,會發生這種情況。有沒有辦法解決這個問題? – Allen

相關問題