问题标签 [bundlor]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
212 浏览

java - Spring undlor 类似物

我正在尝试使用com.springsource.bundlor插件为 maven 为 OSGI 应用程序创建清单文件,并且有很多问题,所以有人可以告诉我有没有类似于 spring bundlor ?谢谢

0 投票
1 回答
1065 浏览

spring - 如何让 Bundler 为 OSGi 蓝图依赖项生成 Import-Package

我在打包为 OSGi 包的服务实现中使用 Spring 和 Spring Integration。该服务由 Blueprint 发布,或者更具体地说是 Gemini Blueprint [ http://www.springframework.org/schema/osgi]

上下文文件位于META-INF/spring/applicationContext*.xml

这适用于一些存根服务,例如内存支持的 DAO,它们的实现不依赖库。服务已注册并且可以由另一个捆绑包执行。

对于更复杂的服务,我使用 Spring Integration,服务实现显然需要访问 Spring 类,这些类由普通的 Spring 库包导出。

我正在使用 Bundler 来管理MANIFEST.MF文件。我试过 Spring Bundlor 1.0.0.RELEASE 和 Eclipse Virgo Bundlor 1.1.0.M3。

我的理解是,Bundlor 旨在能够扫描蓝图上下文文件以确定所需的类,但我没有看到Import-Package清单标头中添加了任何非常有用的东西。

尝试使用 Pax Exam 运行捆绑包时,在 Felix 下,我看到 ClassNotFoundException

我尝试在 中设置Bundle-BlueprintSpring-Contextmanifest 标头manifest.mf,并将它们复制到MANIFEST.MF,但没有Import-Package添加新值。

是否期望在蓝图上下文中添加例如 an<int:gateway .../>将允许 Bundler 正确确定运行时依赖项,例如GatewayProxyFactoryBean上面的?

如果 Bundler 无法确定正确的Import-Package值,那么您如何管理这些“内部”包要求?我认为,必须在某个第三方库中列出所有可能的包是不合理的。是否有一些相当于Import-Library我从 Spring DM 中隐约记得的东西?

参考:

http://static.springsource.org/s2-bundlor/1.0.x/user-guide/htmlsingle/user-guide.html http://blog.springsource.org/2009/09/26/bundlor-adds-support -为蓝图服务/

0 投票
2 回答
403 浏览

maven-2 - 使用 Maven Bundlor 访问第三方库时如何处理传递依赖

我想在我的 osgi 项目中使用 hibernate 4,因此我需要制作 hibernate 4 及其依赖项 osgi 插件,以便它们在 osgi 运行时可用。我正在使用 maven bundler 来做到这一点。因为 hibernate 依赖于其他几个库,其中一些库也具有传递依赖关系。有没有办法让 maven 自动查找所有 hibernate 4 的依赖项并使所有在 osgi 运行时可用?

谢谢你。

0 投票
1 回答
860 浏览

maven - 如何让 maven bundlor 使用我的 MANIFEST.MF 而不是使用模板和类型检测?

我正在使用 Virgo 开发一个 OSGi 应用程序,并使用 maven bundlor 构建捆绑包。我想使用MANIFEST.MFVirgo 使用的,其中包括包导入和一些包导入,但是 bundler 自动检测我的包使用的类并为它们生成包导入,包括来自Import-Bundle标头中包的包。

有没有办法告诉 bundlor 只使用我已经构建MANIFEST.MF的或禁用 java 类型自动检测?

0 投票
2 回答
793 浏览

java - 弹簧插件构建错误

我已经下载了 spring-plugin ( https://github.com/spring-projects/spring-plugin )。我已经解压它,尝试使用 maven(版本 3.1.0)安装它时出现错误。

原始POM文件如下:

我正在尝试使用以下命令行安装它

但是,如果我使用网络浏览器向 URL http://repo.spring.io/pluginsrelease/com/springsource/bundlor/com.springsource.bundlor.maven/1.0.0.RELEASE/com.springsource.bundlor发送请求 .maven-1.0.0.RELEASE.pom

我正在获取 POM 文件。

为了让 spring-plugin 启动并运行,我该怎么做?

0 投票
2 回答
670 浏览

java - Bundler 无法与 Java 8 lambda 一起正常工作

我正在使用插件 org.eclipse.virgo.bundlor 从模板创建 OSGi 清单文件。当我使用 lambdas 时,插件无法正常工作。您能否建议更改我的 maven 文件或替代 bundlor 以允许我使用 lambda?

这是我的 pom.xml

导致问题的代码很简单:

我的错误是这样的:

更新,我尝试使用较新版本的 ASM 库,但没有奏效: