我想知道Netbeans是否有一些选项或设置允许我自动签署jar作为构建的一部分。
In your -post-jar
ant target, it may be convenient to read the <signjar> password from a file, eg ~/.keyconf . Give the file user-only access: eg 400
or 600
.
<loadfile srcfile="${user.home}/.keyconf" property="keyconf"/>
<signjar alias="..." storepass="${keyconf}">
...
</signjar>
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 .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.