Why (and in favor of what) are maven-bundle-plugin's wrap/bundleall goals deprecated?

强颜欢笑 提交于 2019-11-30 18:51:23

The alternative is to just use the bundle:bundle goal, then in your pom.xml configure the plugin similar to the following:

<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>

You can control what dependencies get embeded and exported by changing the wildcards "*", scope, etc. attributes.

I've wondered the same question, found some clue here:

http://www.mail-archive.com/dev@felix.apache.org/msg22221.html

"Instead new features/goals will be added to solve common use-cases such as creating mega-bundles, etc."

I guess they're going to rework the current goals because the current codebase doesn't support all that they want to implement in the plugin.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!