功能已稳定

This commit is contained in:
张家训
2026-06-22 17:17:24 +08:00
parent 699a8697bf
commit c89fcba998
2 changed files with 38 additions and 1 deletions
+9 -1
View File
@@ -32,7 +32,15 @@ taskkill /f /im workutils.exe 2>nul
::: ============================================================
echo.
echo [2/5] Maven build...
call "%PROJECT_DIR%\mvnw.cmd" clean package -DskipTests -q
if exist "%TARGET%" (
echo Cleaning old target...
rd /s /q "%TARGET%" 2>nul
if exist "%TARGET%" (
echo [WARN] Cannot delete target, retrying with Maven clean...
call "%PROJECT_DIR%\mvnw.cmd" clean -q 2>nul
)
)
call "%PROJECT_DIR%\mvnw.cmd" package -DskipTests -q
if %errorlevel% neq 0 (
echo [ERROR] Maven build failed!
pause