我發現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