Files
my-worker/web-mini/bin/run-web.bat
2025-08-01 10:51:25 +08:00

31 lines
590 B
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
rem /**
rem * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
rem * No deletion without permission, or be held responsible to law.
rem *
rem * Author: ThinkGem@163.com
rem */
echo.
echo [信息] 打包Web工程并运行Web工程。
echo.
%~d0
cd %~dp0
rem 打包Web工程开始
cd ..
call mvn clean package spring-boot:repackage -Dmaven.test.skip=true -U
cd target
rem 打包Web工程结束
rem web.war 与 pom.xml 中 finalName、packaging 一致
mkdir app
copy web.war app
cd app
jar -xvf web.war
del web.war
cd WEB-INF
call startup.bat
pause