我想让Eclipse RCP插件的构建过程完全自动化。它有一些第三方jar依赖项(可从获得),这些依赖项不是作为OSGi包分发的,目前我使用"Eclipse plugin from existing JAR archives“向导手动转换它们。PDEBuild或Maven/Tycho (或者其他一些构建系统)可以将其作为构建的一个步骤来完成吗?
发布于 2011-06-18 15:11:17
Peter Tillemans在this post中提到了PAX wrap jar命令
Apache Felix的Maven bundle plugin可能也值得一看。
也许来自SpringSource的Bundlor tool也可以处理从jar创建osgi。
发布于 2012-09-05 22:27:33
查看我开发的p2-maven-plugin。它是一个开源的、对社区友好的插件,它处理:
生成非customizable)
详细信息和文档可在此处找到:http://projects.reficio.org/p2-maven-plugin/manual.html
示例用法:
<plugin>
<groupId>org.reficio</groupId>
<artifactId>p2-maven-plugin</artifactId>
<version>1.0.0-SNAPSHOT</version>
<executions>
<execution>
<id>default-cli</id>
<configuration>
<artifacts>
<!-- specify your depencies here -->
<!-- groupId:artifactId:version -->
<artifact><id>commons-io:commons-io:2.1</id></artifact>
<artifact><id>commons-lang:commons-lang:2.4</id></artifact>
<artifact><id>commons-lang:commons-lang:2.5</id></artifact>
<artifact><id>commons-lang:commons-lang:2.6</id></artifact>
<artifact><id>org.apache.commons:commons-lang3:3.1</id></artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>发布于 2011-06-18 15:38:11
看一下第三方jar与其捆绑的等价物之间的区别。它只是一个额外的plugin.xml和清单中的一些额外的行。
为捆绑jars编写您自己的代码。
https://stackoverflow.com/questions/6394401
复制相似问题