OSGi 开发使用什么 IDE 设置和工作流程?
我在 Eclipse RCP 中做了很多简单的 OSGi 测试项目。我的典型工作流程始终是:
- 创建 3 个不同的项目:APIproject、Clientproject 和 Serverproject
- 编辑 APIproject 的 MANIFEST.MF 以导出 api 包
- 编辑 Clientproject 和 Serverproject 的 MANIFEST.MF 文件以添加所需的 API 包
- 选择“Run as”。 ..”> “插件框架”
- OSGi 控制台在 eclipse 中启动,一切似乎都正常工作
我还尝试使用声明性服务来连接东西,它也像这样工作得很好。
最近我想尝试一下 iPOJO。问题是我感觉我的 OSGi 开发方式是错误的。
难道我应该制作 1 个项目并让它像不涉及 OSGi 一样工作吗?然后,通过(例如)BNDL 工具将每个包导出到自己的包中?开发应该在普通的 Eclipse(java,而不是 RCP)或任何其他 java IDE 中完成吗?
这就是为什么我有这些问题:
- 通常使用什么 IDE 设置来使用 iPOJO 开发 OSGi?
- 开发 OSGi 项目(可能使用 iPOJO)时使用的正常工作流程是什么?
I made quite a few easy OSGi test projects in Eclipse RCP. My typical workflow would always be:
- Make 3 different projects: APIproject, Clientproject and Serverproject
- Edit the MANIFEST.MF of APIproject to export the api package
- Edit the MANIFEST.MF file of Clientproject and Serverproject to add the required API package
- Choose "Run as..." > "Plugin Framework"
- OSGi console starts in eclipse and everything seems to work
I also tried wiring things by using Declarative Services, which worked well like this too.
Now recently I wanted to try out iPOJO. The problem is that I get the feeling that I've been doing my OSGi development the wrong way.
Can it be that I should instead make 1 project en make it work like no OSGi is involved. And then afterwards, just export each package to its own bundle by means of (for instance) the BNDL tool? Should development be done in a normal Eclipse (java, not RCP) or any other java IDE for that matter?
So that's why I have these questions:
- What IDE setup is normally used to develop OSGi with iPOJO?
- And what is the normal workflow to be used when developing OSGi projects (maybe with iPOJO)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通常,当我开发 OSGi 捆绑包(不是 Eclipse RCP 捆绑包)时,我使用以下工具:
我还没有开发任何 Eclipse RPC 包,但是有一个用于 Maven 6 Eclipse RPC 构建集成的新工具,称为 Tycho (http:// tycho.sonatype.org)。
Normally when I develop OSGi bundles (not Eclipse RCP bundles) I use the following tools:
I have not yet developed any Eclipse RPC bundles, but there's a new tool for Maven 6 Eclipse RPC build integration called Tycho (http://tycho.sonatype.org).