Skip to content

Commit 9f3a311

Browse files
author
Rakesh Pawar
committed
added maven-central-deploy.sh
1 parent f35d209 commit 9f3a311

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

maven-central-deploy.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)