I don't know about maven, but I recently researched this topic regarding adding the same attributes (the ones you mentioned) to third-party jars during build using ANT . The Java procedure creates another manifest file (containing the new attributes) and adds it with the jar manifest. You can check the command here , I created my cans during assembly, so I had two options:
First: 1) Unpack the jar 2) Change the manifest 3) Create a Jar again
but it was rather cumbersome, so I used exec() task ANT to run the command to merge the two manifest.
Hope this solves your problem. Thanks
source share