How can you add additional parameters to a jar's manifest file when signing it? I have a javaws app that uses some external libraries. Starting with java7u25 there is a need for additional parameters in the manifest (permissions and codebase). How can I set these at signing (with maven if possible). I can set it at build time for the artifacts I produce but for the ones I get from the external repositories how can I insert them at signing time?
I update the 3rd party jars prior to signing them. The ant task for updating the jar is:
jar ufm thirdparty.jar manifest_adder.mf
u: update
f: output to file
m: manifest file attached.
The manifest_adder.mf file will be merged with the existing manifest in the 3rd party jar.
Important observation:
Note: The contents of the manifest must be encoded in UTF8.
I lost a lot of time because of that. Hope this help someone.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With