forked from jflex-de/jflex
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmvn-deploy
executable file
·50 lines (42 loc) · 1.22 KB
/
mvn-deploy
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
#
# mvn-deploy
#
# This script deploys the current working copy to the Sonatype OSS Maven
# staging repository.
#
# The prepare-release.pl script should be run before this script.
# See HOWTO_release.txt for more information.
#
# This script is more than just "mvn -Psonatype-oss-release deploy"
# because of inter-dependencies: the maven plugin depends on the release
# version of the jflex jar, and since that can't be satisfied until the
# jflex jar has been installed, that has to be done first. Similarly,
# the jflex module depends on the parent POM, so that has to be installed
# before building the jflex module.
#
# Fail if any command fails
set -e
# Abort if the checkout is not clean
#printf "Clean checkout? "
#stat_results=`git status -s`
#if [ ! -z "$stat_results" ] ; then
# printf "NO!\n\n${stat_results}\nAborting.\n"
# exit 1
#fi
#echo "Yes."
# Install the jflex-parent POM
mvn -N install
# Install JFlex
cd jflex
mvn clean
mvn install
# Install the JFlex Maven Plugin
cd ../jflex-maven-plugin
mvn clean
mvn install
# Deploy the deployable stuff to the Sonatype OSS Maven repository (SNAPSHOT)
cd ..
mvn -Psonatype-release deploy -Dgpg.passphrase=
# Do a release
#mvn clean deploy -Psonatype-release