我在哪里可以找到Spring 4 OSGi包

Phi*_*all 19 spring osgi

我在哪里可以找到Spring 4的OSGi包?我检查了http://ebr.springsource.com/但只能找到Spring 3.2.x并且Maven Central中的工件不是捆绑包.

澄清

我不是在寻找Spring DM或类似产品.我正在寻找"Spring Framework"JAR(spring-core,spring-beans,spring-context,...)作为OSGi包.我不是想在OSGi环境中创建应用程序上下文.我只需要OSGi环境中的(异常)类.

Mir*_*ahn 17

Spring 不会支持OSGi捆绑包的任何进一步版本.春季3.2.4已经停止了官方支持(尽管你可以在这里找到3.2.5文件,与Eclipse论坛中的说法相矛盾)

来自Spring的Glyn Normington承认,在几个地方,请看这里:

但是,有希望.在Karaf-dev列表中,可以看到他们打算在ServiceMix项目中支持spring库.整个帖子的详细信息请参见此处.


All*_*len 14

我发现ServiceMix提供了OSGi-fy Spring捆绑包.4.1.4,http: //repo2.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.spring-aop/

我在我的osgi Bundle项目中尝试过,设置依赖类似:

 <dependency>
        <groupId>org.apache.servicemix.bundles</groupId>
        <artifactId>org.apache.servicemix.bundles.spring-core</artifactId>
        <version>4.1.1.RELEASE_3</version>
 </dependency>
Run Code Online (Sandbox Code Playgroud)

在Felix中运行已发现的sprint包被激活:

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)
.... 
Run Code Online (Sandbox Code Playgroud)

但在最新版本5.4.0中,ServiceMix仅包含spring 3.2.11.

在我的OSGi环境中使用spring 4.1.1时有任何风险吗?


6to*_*ton 13

Spring源于去年停止使用OSGI heaaders创建jar:http: //www.infoq.com/news/2012/10/spring-osgi-gradle/

我不认为你会得到一个包含OSGI捆绑包的正式maven repo for spring.我们经常使用http://ebr.springsource.com/获取OSGI包,但即使这样也不包含3.2之后的任何版本

由于回购率低,无法添加评论,因此添加为答案.


dai*_*ian 6

我必须说,将Spring迁移到OSGi仍然存在于Apache ServiceMix中.从maven repo获取最新的(4.0.2.RELEASE)Spring工件和OSGi启用的清单