I'm looking to modify an existing third-party JAR's Manifest file in my
maven build. Specifically, I have an Applet which has a dependency on
these third party jars, and need to add some entries/permissions to the
Manifest before I sign them for my Applet to use.
I'm looking to add the following:
<Permissions>all-permissions</Permissions>
<Codebase>*</Codebase>
<Application-Library-Allowable-Codebase>*</Application-Library-Allowable-Codebase>
<Trusted-Library>true</Trusted-Library>
<Application-Name>MyApp</Application-Name>
<Caller-Allowable-Codebase>*</Caller-Allowable-Codebase>
I realize that these aren't particularly secure parameters, but right now
I'm just trying to see what it will take to get this working.
Is there a plugin that will allow me to modify an existing jar? I'm using
the dependency plugin to retrieve them from Maven, but once I have them
locally, I'm not sure what to use to update the MANIFEST. Is this
something the assembly plugin can do easily? I've looked at the assmbly
descriptor reference, but don't see where/how it can be leveraged for this.
Thanks,
Eric