[shade] rewrite the manifest too

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[shade] rewrite the manifest too

Romain Manni-Bucau
Hi all,

Using maven shade to relocate packages, I realized it breaks OSGi
environments cause the manifest is not rewritten.
I did a quick hack to solve it at
https://github.com/apache/maven-shade-plugin/pull/38. Even if it can be
enhanced parsing OSGi entries as bnd does, I guess it is enough for most
cases.
Tracking ticket is here https://issues.apache.org/jira/browse/MSHADE-350.

I would be happy to get some feedback before moving forward.

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>