| export MAVEN_BIN=${MAVEN_BIN:=`which mvn`} |
| if [ -z "$MAVEN_BIN" ]; then |
| echo "mvn not found. Add mvn to PATH or set MAVEN_BIN." |
| function set-random-dir() { |
| export RANDOM_DIR=/tmp/random-dir-$RANDOM$RANDOM$RANDOM$RANDOM |
| function maven-deploy-file() { |
| if [[ "$curFile" == "" ]]; then |
| echo "ERROR: Unable to deploy $artifactId in repo! Cannot find corresponding file!" |
| if [[ "$gpgPassphrase" != "" ]]; then |
| gpg:sign-and-deploy-file \ |
| -DrepositoryId=$mavenRepoId \ |
| -Dclassifier=$classifier \ |
| -Dgpg.passphrase=\"$gpgPassphrase\"" |
| echo "GPG passphrase not specified; will attempt to deploy files without signing" |
| -DrepositoryId=$mavenRepoId \ |
| -Dclassifier=$classifier \ |