Files
my-spring/web-fast/bin/run-web.bat
2026-03-19 10:57:24 +08:00

28 lines
560 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 https://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
if defined JAVA_HOME17 (
set "JAVA_HOME=%JAVA_HOME17%" & set "PATH=%JAVA_HOME17%\bin;%PATH%"
)
call mvn -v
echo.
cd ..
call mvn clean package spring-boot:repackage -Dmaven.test.skip=true -U
rem web.jar 与 pom.xml 中 finalName、packaging 一致
cd target
call java -jar web.jar
pause