forked from ArcBees/GWTP
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmaven-release.sh
More file actions
34 lines (24 loc) · 816 Bytes
/
maven-release.sh
File metadata and controls
34 lines (24 loc) · 816 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#/bin/sh
# maven release helper
# notes: https://github.com/ArcBees/GWTP/issues/89
if [ -z $1 ]; then
echo "Please provide the gpg password > sh maven-release.sh xxxgpg-passxxx";
exit
fi
if [ -z $JAVA_HOME ]; then
echo "Please set JAVA_HOME > export JAVA_HOME=`/usr/libexec/java_home -v 1.7`";
exit
fi
if [ -z $MAVEN_OPTS ]; then
echo "Setting some MAVEN_OPTS > export MAVEN_OPTS='-Xmx512m -XX:MaxPermSize=128m'";
export MAVEN_OPTS="-Xmx512m -XX:MaxPermSize=128m"
fi
echo "Started..."
mvn clean deploy -Prelease -DskipTests
mvn release:clean release:prepare --batch-mode -Dgpg.passphrase=$1
mvn release:perform -Dgpg.passphrase=$1
#TODO add nexus close and release goals, for now goto https://oss.sonatype.org/index.html
# upload new javadoc
mvn install
mvn site
echo "...Finished"