我发现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有什么风险吗?
这个线程http://www.theserverside.com/discussions/thread.tss?thread_id=71606表明它所有的移动到http://www.eclipse.org/gemini/前一段时间。 – pd40
我读它的方式是Spring DM。这不是我要找的。我只是在寻找Spring-Core,Spring-context,spring-beans,... OSGi包。 –
好问题。我在https://www.versioneye.com/java/org.springframework:spring-core/4.0.0.RELEASE找到了回购清单。在3.2.5之后似乎捆绑不在那里。 – pd40