• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2if [ $# -lt 1 ]; then
3  echo "usage $0 <ssl-key> [<param> ...]"
4  exit 1;
5fi
6key=$1
7shift
8
9#validate key
10keystatus=$(gpg --list-keys | grep ${key} | awk '{print $1}')
11if [ "${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
17fi
18
19mvn "$@" -P '!examples' -P sonatype-oss-release \
20    -Dgpg.skip=false -Dgpg.keyname=${key} \
21    clean site:jar deploy
22