How to configure maven-bundle-plugin to exclude Import-Service and Export-Service?

前端 未结 1 1568
被撕碎了的回忆
被撕碎了的回忆 2021-01-03 14:23

I use maven-bundle-plugin to create OSGi compliance jars. It generates expected OSGi MANIFEST, except Import-Service and Export-Service.

According to http://wiki.os

相关标签:
1条回答
  • 2021-01-03 14:48

    Inside instructions element for plugin configuration you may add:

    <_removeheaders>Import-Service,Export-Service</_removeheaders>
    

    This is equivalent of -removehaders flag in bnd.

    0 讨论(0)
提交回复
热议问题