在自动构建中从现有 jar 创建 Eclipse 插件
我想让 Eclipse RCP 插件的构建过程完全自动化。它有一些第三方 jar 依赖项(可从 Maven 存储库获取),这些依赖项未作为 OSGi 捆绑包分发,目前我使用“来自现有 JAR 存档的 Eclipse 插件”向导来手动转换它们。 PDEBuild 或 Maven/Tycho(或者其他构建系统)可以将其作为构建的一个步骤吗?
I want to make the build process for my Eclipse RCP plugin fully automatic. It has some third-party jar dependencies (available from Maven repositories) which are not distributed as OSGi bundles, and currently I use the "Eclipse plugin from existing JAR archives" wizard to convert them manually. Can PDEBuild or Maven/Tycho (or perhaps some other build system) do it as a step of the build?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Peter Tillemans 在 PAX 包装 jar 命令中提到a href="https://stackoverflow.com/questions/3594024/how-to-create-osgi-bundle-from-jar-library">这篇文章
来自 Apache Felix 的 Maven 捆绑插件 可能值得一试你也看看。
也许是 Bundlor 工具 也可以处理从 jar 中创建 osgi 包。
Peter Tillemans mentioned the PAX wrap jar command in this post
The Maven bundle plugin from Apache Felix may be worth a look, too.
Maybe the Bundlor tool from SpringSource can handle the creation of osgi bundles from jar, too.
查看我开发的 p2-maven-plugin。它是一个开源、社区友好的插件,可以处理:
详细信息和文档可以在这里找到:http://projects.reficio.org/p2-maven-plugin/manual.html
示例用法:
Checkout the p2-maven-plugin developed by me. It's an open-source, community-friendly plugin that handles:
Details and the documentation could be find here: http://projects.reficio.org/p2-maven-plugin/manual.html
Sample usage:
看一下第三方 jar 与其捆绑的等效项之间的差异。它只是一个额外的plugin.xml 和清单中的一些额外行。
编写您自己的代码来捆绑 jar。
Take a look on the differences between the thirdparty jar and its bundled equivalence. It's just an additional plugin.xml and a few extra lines in the manifest.
Write your own code for bundling jars.