-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.bat
52 lines (45 loc) · 1.58 KB
/
build.bat
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
50
51
52
@echo off
setlocal
echo.
call java -version
echo.
SET JAVA_HOME=D:\__SYNC1\Softwares\Java\jdk1.7.0_79
set settings=D:\__SYNC0\00WORK\ide-config\settings-local.xml
echo ------------------------- maven info -------------------------------
call mvn -v
if [%1]==[] goto HELP
if [%1]==[--help] goto HELP
if [%1]==[deploy] goto DEPLOY
:: ****************************************************************************
:: Title : xxxxx
::
:: Usage : xxxxx
::
:: Args : xxxxx
::
:: E.g. :
::
:: Notes :
::
:: Requires:
::
:: Returns:
::
:: Author: Zollty Tsou *
:: Version: 1.0.0 *
:: Date: 02/28/2018 *
:: Link: zollty@163.com *
:: ****************************************************************************
echo ------------------------- starting to install -------------------------
call mvn clean install --settings %settings%
goto EOF
:DEPLOY
echo ------------------------- starting to deploy -------------------------
call mvn deploy -DaltDeploymentRepository=my-git-repo::default::file:///D:/__SYNC2/git/repository --settings %settings%
goto EOF
:HELP
echo.
echo Usage:
echo input other chars to execute install.
echo.
:EOF