forked from apiman/apiman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fastbuild.sh
executable file
·30 lines (21 loc) · 733 Bytes
/
fastbuild.sh
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
#!/bin/bash
set -o nounset
set -o errtrace
set -e
set -x
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
export MVN=
if ! command -v mvnd &> /dev/null
then
echo "*** mvnd (maven daemon) could not be found. Using Maven Wrapper. https://github.com/mvndaemon/mvnd#how-to-install-mvnd ***"
MVN="$SCRIPT_DIR/mvnw -T1C "
else
MVN=mvnd
fi
echo "Fast build skips tests, Javadoc, and various other non-essentials for quickly rebuilding."
cd $SCRIPT_DIR
cd parent
$MVN clean install
cd $SCRIPT_DIR
$MVN clean install -DskipTests -Dmaven.javadoc.skip -nsu -Pinstall-all-wildfly -Pdocker -Dmaven.wagon.http.retryHandler.count=3 -Dmaven.wagon.httpconnectionManager.ttlSeconds=25
echo "Done"