Sign a JAR automatically when building from Netbeans

后端 未结 2 1679
生来不讨喜
生来不讨喜 2021-01-05 02:50

I want to know if Netbeans has some option or setting that will allow me to automatically sign a jar as part of the build.

相关标签:
2条回答
  • 2021-01-05 03:30

    You could use the maven plugin for that. Netbeans is able to open and create maven files out-of-the-box.

    If you need signing for jnlp you could look into this and that explanation, which works fine in my TimeFinder project see the pom.xml.

    0 讨论(0)
  • 2021-01-05 03:40

    In your -post-jar ant target, it may be convenient to read the <signjar> password from a file, e.g. ~/.keyconf. Give the file user-only access: e.g. 400 or 600.

    <loadfile srcfile="${user.home}/.keyconf" property="keyconf"/>
    <signjar alias="..." storepass="${keyconf}">
        ...
    </signjar>
    
    0 讨论(0)
提交回复
热议问题