forked from knightliao/disconf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_java.sh
44 lines (36 loc) · 956 Bytes
/
build_java.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
#
# War包的部署
#
#
if [ $# -le 0 ];then
echo "**********************************************"
echo "use online profile"
echo "**********************************************"
mvn clean
mvn package install -Dmaven.test.skip=true -Ponline -U
else
if [ "$1" == "rd" ];then
echo "**********************************************"
echo "use default profile(RD)"
echo "**********************************************"
mvn clean
mvn package install -Dmaven.test.skip=true -U
else
echo "**********************************************"
echo "use the following as profile"
echo $1
echo "**********************************************"
mvn clean
mvn package install -P$1 -U
fi
fi
#
#
#
if [ -d "output" ]; then
printf '%s\n' "Removing output"
rm -rf output
fi
mkdir -p output
cp target/disconf-web.war output