echo "<signing property file> must contain the following properties:"
echo " jarsigner.alias: keystore entry alias"
echo " jarsigner.storepass: password for the keystore"
- echo " jarsigner.keypass: password for the key <jarsigner.alias>"
echo ""
echo "<TSA URL> can be empty is timestamping is not desired."
exit -1
keyalias=$(signprop 'jarsigner.alias')
storepass=$(signprop 'jarsigner.storepass')
-keypass=$(signprop 'jarsigner.keypass')
for jar in `find "${dir}/target/repository/plugins/" -type f -not -ipath '*.source_*.jar'`; do
echo "----"
echo "Signing $jar"
jarsigner -keystore "${keystore}" \
-storepass ${storepass} \
- -keypass ${keypass} \
-verbose \
"$jar" \
${keyalias}
echo "Signing and timestamping $jar"
jarsigner -keystore "${keystore}" \
-storepass ${storepass} \
- -keypass ${keypass} \
-verbose \
-tsa "${tsa}" \
"$jar" \