Ale*_*nov 10 osgi maven maven-bundle-plugin
http://svn.apache.org/repos/asf/felix/releases/maven-bundle-plugin-2.3.7/doc/site/wrap-mojo.html表示bundle:wrap已被弃用,与之相同bundle:bundleall.我目前用于wrap从非OSGi依赖项创建OSGi包,如http://www.lucamasini.net/Home/osgi-with-felix/creating-osgi-bundles-of-your-maven-dependencies所述.它们应该被替换为什么以及弃用的原因是什么?
另一种方法是只使用bundle:bundle目标,然后在你的pom.xml中配置类似于以下内容的插件:
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<configuration>
<instructions>
<Embed-Dependency>*;scope=compile;inline=true</Embed-Dependency>
<_exportcontents>*</_exportcontents>
</instructions>
</configuration>
</plugin>
Run Code Online (Sandbox Code Playgroud)
您可以通过更改通配符"*",范围等属性来控制嵌入和导出的依赖项.
| 归档时间: |
|
| 查看次数: |
2364 次 |
| 最近记录: |