我在哪里可以找到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环境中的(异常)类.
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>
在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)
.... 
但在最新版本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之后的任何版本
由于回购率低,无法添加评论,因此添加为答案.
| 归档时间: | 
 | 
| 查看次数: | 16249 次 | 
| 最近记录: |