Home | History | Annotate | Download | only in util
      1 #!/bin/bash
      2 if [ $# -lt 1 ]; then
      3   echo "usage $0 <ssl-key> [<param> ...]"
      4   exit 1;
      5 fi
      6 key=$1
      7 shift
      8 
      9 #validate key
     10 keystatus=$(gpg --list-keys | grep ${key} | awk '{print $1}')
     11 if [ "${keystatus}" != "pub" ]; then
     12   echo "Could not find public key with label ${key}"
     13   echo -n "Available keys from: "
     14   gpg --list-keys | grep --invert-match '^sub'
     15 
     16   exit 64
     17 fi
     18 
     19 mvn "$@" -P '!examples' -P sonatype-oss-release \
     20     -Dgpg.skip=false -Dgpg.keyname=${key} \
     21     clean site:jar deploy
     22