gpt4 book ai didi

Spring 框架下载为 OSGi 包

转载 作者:行者123 更新时间:2023-12-02 04:43:39 24 4
gpt4 key购买 nike

我正在为 OSGi 开发 Spring,又名 Eclipse Gemini 蓝图。

我发现的每个教程或文档都提到将 Spring 提供的几个包添加到我的 OSGi 容器(如 org.springframework.aop.jar)。很难找到当前 Spring 版本的下载,因为它似乎不再直接在他们的主页上提供(只有 maven 链接等,这不是当前项目的选项)。特别是每个教程都提到,这个库也作为 OSGi 包提供。

In addition, the Spring Framework provides a number of bundles that are required to be installed as dependencies. As of release 2.5 of the Spring Framework, the Spring jars included in the Spring distribution are valid OSGi bundles and can be installed directly into an OSGi platform.

来源:http://www.eclipse.org/gemini/blueprint/documentation/reference/1.0.2.RELEASE/html/app-deploy.html

但我能找到的所有下载(例如 http://maven.springframework.org/release/org/springframework/spring/3.2.5.RELEASE/)只包含普通的 jar,没有 OSGi 包。从 Spring 3.x 开始,提供 OSGi bundle 的做法是否已停止?如何将必要的 Spring 依赖项添加到我的项目中?教程/文档是否过时?

我使用的是 Gemini 的最新版本 1.0.2。

最佳答案

您可以使用 Eclipse Maven 存储库

<repositories>
<repository>
<id>gemini-blueprint</id>
<name>Gemini Blueprint</name>
<url>https://repo.eclipse.org/content/groups/gemini-blueprint/</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>org.eclipse.gemini.blueprint</groupId>
<artifactId>gemini-blueprint-extender</artifactId>
<version>2.0.0.BUILD-SNAPSHOT</version>
</dependency>
</dependencies>

Blueprint Extender 的传递依赖项将包含您需要的所有 Spring 内容。

关于Spring 框架下载为 OSGi 包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20267343/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com