当前位置:网站首页>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边栏推荐
- Typescript header file usage details
- Clipping and overlapping of YUV data
- Basic use of typescripy class
- Process control: process waiting (recycling child processes)
- Shell Programming Notes
- Selenium click the floating menu and realize the functions of right mouse button
- 空间几何
- TypeScript-unknown类型
- How CSDN reports plagiarized articles
- (resolved) pychart debug error -unicode decodeerror: 'UTF-8' codec can't decode byte 0xe8 in position 1023
猜你喜欢
![Socket [5] - struct linker usage](/img/e5/bce5d89c61a3a4f89171734ca6ff8e.png)
Socket [5] - struct linker usage
![[the most complete ENSP [installation diagram] in history!]](/img/1a/7d50d6e5c06a5e3ce6acab16ddb638.jpg)
[the most complete ENSP [installation diagram] in history!]

Summary of evaluation index knowledge points in target detection: summary of IOU cross overlap unit and map/ap/tp/fp/np

Summary of embedded software interview questions

torch. Var (), sample variance, parent variance

Using Tkinter to realize guessing numbers game

Crawl Baidu Baipin dynamic page

Return in foreach and break in for

【案例解读】医疗单据OCR识别助力健康险智能理赔

JS learning basics document Write write a line of text in the page
随机推荐
TypeScript-在koa中配置TS和使用koa-router
torch. unbind()
[transfer] two-way merging and sorting of C language
用 Keras/TensorFlow 2.9 创建深度学习模型的方法总结
Bladed入門教程(視頻)
These gadgets are also very easy to use
Use guidelines in constraintlayout to limit the maximum width of controls
嵌入式软件面试问题总结
【案例解读】医疗单据OCR识别助力健康险智能理赔
TypeScript-null和undefined
(the slow download speed of cifar10 in torchvision has been solved) how to download and use torchvision import
2022.6.6 extra long growth simulation
C. Manipulating History(贪心/哈希/思维/好题)
TypeScript-类型别名
Tidb Cloud est en ligne sur le marché Google Cloud pour permettre aux développeurs du monde entier d'utiliser une nouvelle pile de bases de données htap en temps réel
In an activity, view postdelay will cause memory leakage, but will not affect the life cycle execution of the activity.
134. gas station
TiDB Cloud 上線 Google Cloud Marketplace,以全新一棧式實時 HTAP 數據庫賦能全球開發者
JS learning basics document Write write a line of text in the page
Tidb cloud launched Google cloud marketplace, empowering global developers with a new stack of real-time HTAP databases