We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f35d209 commit 9f3a311Copy full SHA for 9f3a311
1 file changed
maven-central-deploy.sh
@@ -0,0 +1,14 @@
1
+#!/bin/bash
2
+# Deploy maven artefact in current directory into Maven central repository
3
+# using maven-release-plugin goals
4
+
5
+read -p "Really deploy to maven cetral repository (yes/no)? "
6
7
+if ( [ "$REPLY" == "yes" ] ) then
8
+ ssh-add ~/.ssh/pnrakesh
9
+ ssh-add -l
10
+ mvn release:clean release:prepare release:perform -B -e | tee maven-central-deploy.log
11
+ ssh-add -D
12
+else
13
+ echo 'Exit without deploy'
14
+fi
0 commit comments