Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/visual-studio-2010/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在哪里可以找到Spring 4 OSGi捆绑包_Spring_Osgi - Fatal编程技术网

在哪里可以找到Spring 4 OSGi捆绑包

在哪里可以找到Spring 4 OSGi捆绑包,spring,osgi,Spring,Osgi,在哪里可以找到Spring4的OSGi捆绑包?我检查过了,但只能找到Spring3.2.x,Maven Central中的工件不是捆绑包 澄清 我不是在寻找Spring DM或类似产品。我正在寻找“springframework”jar(springcore、springbean、springcontext等等)作为OSGi包。我不想在OSGi环境中创建应用程序上下文。我只需要OSGi环境中的(异常)类。Spring source去年停止使用OSGi heaaders创建JAR: 我不认为你会

在哪里可以找到Spring4的OSGi捆绑包?我检查过了,但只能找到Spring3.2.x,Maven Central中的工件不是捆绑包

澄清


我不是在寻找Spring DM或类似产品。我正在寻找“springframework”jar(springcore、springbean、springcontext等等)作为OSGi包。我不想在OSGi环境中创建应用程序上下文。我只需要OSGi环境中的(异常)类。

Spring source去年停止使用OSGi heaaders创建JAR:

我不认为你会得到一份包含OSGI捆绑包的官方maven回购协议。我们经常使用OSGI捆绑包,但即使它也不包含3.2之后的任何版本


由于回购价格较低,无法添加为注释,因此添加为答案。

查找有点棘手,下面是OSGi捆绑包的链接

以及所有春季项目


Spring将支持任何作为OSGi捆绑包的进一步发布。Spring3.2.4已经停止了官方支持(尽管您可以找到3.2.5工件,这与

Spring source的Glyn Normington承认,在几个地方,请参见:


然而,还是有希望的。在Karaf-dev列表中,可以看到他们打算在ServiceMix项目中支持spring库。整个线程中的详细信息请参见。

我必须说,将Spring迁移到OSGi仍然存在于Apache ServiceMix中。

获取最新(4.0.2.RELEASE)的Spring工件,其中包含启用OSGi的清单。我发现ServiceMix提供了OSGi fy Spring bundle,最新版本为。4.1.4,

我在我的osgi捆绑包项目中尝试过这样设置依赖关系:

 <dependency>
        <groupId>org.apache.servicemix.bundles</groupId>
        <artifactId>org.apache.servicemix.bundles.spring-core</artifactId>
        <version>4.1.1.RELEASE_3</version>
 </dependency>
但在其最新版本5.4.0中,ServiceMix仅包括spring 3.2.11


在我的OSGi环境中使用spring 4.1.1有什么风险吗?

这条线索表明它已经迁移到了一段时间以前的版本。我阅读它的方式是spring DM。那不是我要找的。我只是在寻找SpringCore、SpringContext、SpringBeans……OSGi包。问得好。我在这里找到了一份回购清单。似乎在3.2.5之后,捆绑包就不存在了。春季ebr回购即将消失(请看常见问题)。我想你可以“osgify”你自己的bundle:)只需创建一个POM,比如说spring核心依赖,然后使用bnd插件私有包everything。这些都不是我要找的库。我不是在寻找Spring OSGi,它包含的最新版本似乎是3.1.4。无论捆绑包最终是否会出现在EBR中,官方都会很高兴。这不再是事实。随着Apache Servicemix 5.1.1的发布,Spring 4.0.2.RELEASE osgi捆绑包不再可用。更新:Spring 4.0.5版本再次回到Servicemix 5.3.0中。我发现在osgi环境中使用Spring存在问题。Spring无法加载Spring捆绑包中嵌入的架构“”资源。在创建ClassPathXmlApplicationContext时,如果没有互联网连接。有没有办法解决这个问题?
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)
....