2014-01-17 44 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

相关问题