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

后端 未结 2 1328
既然无缘
既然无缘 2021-01-04 17:10

http://svn.apache.org/repos/asf/felix/releases/maven-bundle-plugin-2.3.7/doc/site/wrap-mojo.html says bundle:wrap is deprecated, same with bundle:bundleal

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-04 17:53

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

    
       org.apache.felix
       maven-bundle-plugin
       
          
             *;scope=compile;inline=true
             <_exportcontents>*
          
       
     
    

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

提交回复
热议问题