当前位置:网站首页>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边栏推荐
- Receive ontrimmemory and other callbacks through componentcallbacks2 and mock the corresponding scenario
- El expressions and JSTL
- 图数据库无缝集成Tushare接口
- TypeScript-枚举
- Xshell7 and xftp7 to continue using this program, you must apply the latest updates or use a new version
- Alchemy experience (model training of deep learning) the necessity of timely adjusting training parameters for some situations (the adjustment of learning rate LR is the primary) summarizes some metho
- Solve cannot import name 'multiheadattention' from 'tensorflow keras. layers‘
- 【案例解读】医疗单据OCR识别助力健康险智能理赔
- Anaconda+tensorflow most effective summary version (blood and tears summary of 6 reloads)
- [transfer] two-way merging and sorting of C language
猜你喜欢

(resolved) typeerror: meshgrid() got an unexpected keyword argument 'indexing‘

TRUNC in pytorch_ normal_ principle

【 史上最全的ENSP【安装图解】!】

如何开始参与开源社区

【1】 Integrated learning: quickly understand Integrated Learning

使用 COCO 数据集训练 YOLOv4-CSP 模型

Using Tkinter to realize guessing numbers game

Solve ('You must install pydot (`pip install pydot`) and install graphviz (see...) '‘ for plot_ model..

Training yolov4 CSP model using coco dataset
![[the most complete ENSP [installation diagram] in history!]](/img/1a/7d50d6e5c06a5e3ce6acab16ddb638.jpg)
[the most complete ENSP [installation diagram] in history!]
随机推荐
torch. unbind()
Activity中,View#postDelay会导致内存泄漏,但是不会影响Activity的生命周期执行。
How many of the 50 questions about network knowledge can you answer correctly?
Modulenotfounderror: no module named 'tensorboard in pytorch‘
Bladed入門教程(視頻)
避免list的并发修改异常的几种方式
Jupyter notebook code completion plug-in + Solution
记一次忽略@SuppressLint(“NewApi“)提示引发的血案
TypeScript-枚举
torch. meshgrid
SOCKET【5】- struct linger 用法
Methods to improve training speed in deep learning and techniques to reduce video memory (suitable for entry-level trick without too many computing resources)
Typescript recognizable Union
Bladed入门教程(视频)
Selenium click the floating menu and realize the functions of right mouse button
TypeScripy-类的基本使用
关于网络知识的50个问答题,你能答对几个?
Js学习基础document.write在页面中写一行文字
Typescript namespace
Several ways to avoid concurrent modification exceptions of lists