diff --git a/maven-central-deploy.sh b/maven-central-deploy.sh new file mode 100755 index 00000000..50be3699 --- /dev/null +++ b/maven-central-deploy.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash +# Deploy maven artifact in current directory into Maven central repository +# using maven-release-plugin goals + +read -r -p "Really deploy to maven central repository (yes/no)? " + +if [[ "$REPLY" == "yes" ]]; then + mvn release:clean release:prepare release:perform -e | tee maven-central-deploy.log +else + echo 'Exit without deploy' +fi