Skip to content

Commit 7fe523f

Browse files
committed
chore: fix maven central deployment scripts
1 parent 2accd93 commit 7fe523f

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env bash
2+
3+
# Deploy maven artefact in current directory into Maven central repository
4+
# using maven-release-plugin goals
5+
6+
read -p "Really deploy to maven cetral repository (yes/no)? "
7+
8+
if ( [ "$REPLY" == "yes" ] ) then
9+
eval `ssh-agent`
10+
ssh-add ~/.ssh/id_rsa
11+
ssh-add -l
12+
mvn clean deploy -e -P sonatype-oss-release
13+
ssh-add -D
14+
else
15+
echo 'Exit without deploy'
16+
fi

maven-central-deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if ( [ "$REPLY" == "yes" ] ) then
99
eval `ssh-agent`
1010
ssh-add ~/.ssh/id_rsa
1111
ssh-add -l
12-
mvn release:clean release:prepare release:perform -Dgoals='deploy' -e
12+
mvn release:clean release:prepare release:perform -Dgoals='deploy' -e -P sonatype-oss-release
1313
ssh-add -D
1414
else
1515
echo 'Exit without deploy'

0 commit comments

Comments
 (0)