Simpliest way to add an attribute to a jar Manifest in Maven

后端 未结 5 1481
时光说笑
时光说笑 2020-12-06 06:06

Since the last Java update, I need to tag my applet jars manifest with the Trusted-Library attribute to avoid warning popup when javascript is communicating wit

5条回答
  •  情书的邮戳
    2020-12-06 06:44

    You can use the jar utility to update manifest for existing .jar files like this:

    echo 'Trusted-Library: true' > manifest.mf
    jar uvfm your-jar-file.jar ./manifest.mf
    

    For more information, please see the doc and the tutorial at here.

提交回复
热议问题