当前位置:网站首页>bat 批处理单独环境打包
bat 批处理单独环境打包
2022-06-11 08:15:00 【王家五哥】
利用批处理+maven 区分不同环境的项目打包
@echo off
color 0a
title MAVEN项目一键提取war
rem 多jdk可以打开指定版本
rem SET JAVA_HOME=C:\Program Files\Java\jdk1.8.0_101
SET "TARGET_HOME=C:\Users\wll\Desktop\temp_data"
SET "PROECT_HOME=D:\A_eclipse_work\gitlab\gitlab-fulan\inc\gwcslife-incVer_14_0_0_0"
echo.
echo ---------------------------请输入要打包的环境,回车即可!---------------------------
echo ---------------------------请输入要打包的环境,回车即可!---------------------------
echo.
ECHO.
ECHO. [1] sit
ECHO. [2] dev
ECHO. [3] uat
ECHO. [4] prod
ECHO. [5] 退 出
ECHO.
ECHO.请输入选择项目的序号:
set /p ID=
IF "%id%"=="1" GOTO sit
IF "%id%"=="2" GOTO dev
IF "%id%"=="3" GOTO uat
IF "%id%"=="4" GOTO prod
IF "%id%"=="5" EXIT
PAUSE
:sit
SET "PROECT_EVN= -P sit"
goto:run
:dev
SET "PROECT_EVN= -P dev"
goto:run
:uat
SET "PROECT_EVN= -P uat"
goto:run
:prod
SET "PROECT_EVN= -P prod"
goto:run
:run
echo.
echo ---------------------------数据处理中!请勿关闭!---------------------------
echo ---------------------------数据处理中!请勿关闭!---------------------------
echo.
cd /d "%TARGET_HOME%"
if exist "recr.war" (
del /s /Q "recr.war"
)
if exist "extra.war" (
del /s /Q "extra.war"
)
cd /d "%PROECT_HOME%"
call mvn clean install %PROECT_EVN%
echo.
echo ---------------------------business正在进行数据拷贝...---------------------------
echo.
copy %PROECT_HOME%\inc-business\target\*.war %TARGET_HOME%
echo.
echo ---------------------------business正在数据拷贝完成...---------------------------
echo.
echo.
echo ---------------------------inc-extra正在进行数据拷贝...---------------------------
echo.
copy %PROECT_HOME%\inc-extra\target\*.war %TARGET_HOME%
echo.
echo ---------------------------inc-extra正在数据拷贝完成...---------------------------
echo.
echo.
echo ---------------------------项目打包完成!!!---------------------------
TIMEOUT /T 20
pause边栏推荐
- C. Manipulating History(贪心/哈希/思维/好题)
- 如何开始参与开源社区
- Solve notimplementederror: layer XX has arguments in`__ init__` and therefore must override `get_ config`
- Shell编程笔记
- Typescript enumeration
- 134. gas station
- (completely solved) dataframe assignment settingwithcopywarning: a value is trying to be set on a copy of a slice
- Batch splice string
- TypeScript-键盘映射
- (taking pytorch as an example) a simple understanding of the regularization method of path (depth) -drop path
猜你喜欢

Training yolov4 CSP model using coco dataset

Solve notimplementederror: layer XX has arguments in`__ init__` and therefore must override `get_ config`

进程控制:进程等待(回收子进程)

Solve cannot import name 'multiheadattention' from 'tensorflow keras. layers‘

torch. nn. functional. pad

Figure seamless database integration tushare interface

Study the Analects of entanglement

Using Tkinter to realize guessing numbers game

Tidb cloud launched Google cloud marketplace, empowering global developers with a new stack of real-time HTAP databases

How to start participating in the open source community
随机推荐
使用 COCO 数据集训练 YOLOv4-CSP 模型
(resolved) pychart debug error -unicode decodeerror: 'UTF-8' codec can't decode byte 0xe8 in position 1023
How to do well in empty state design? Look at this comprehensive summary
TypeScript-接口和类型别名异同
Typescript class and interface, class and generic, interface merging
Socket [5] - struct linker usage
torch. nn. functional. pad
如何开始参与开源社区
TypeScript-头文件使用细节
Use special characters to splice strings "+“
Batch splice string
Method summary of creating deep learning model with keras/tensorflow 2.9
Clipping and overlapping of YUV data
Receive ontrimmemory and other callbacks through componentcallbacks2 and mock the corresponding scenario
避免list的并发修改异常的几种方式
JS basic learning script
项目实训-克隆门
彻底记住ImageView的background和src的区别
Servlet、ServletConfig、ServletContext
Typescript null and undefined