①逆向工程插件支持多数据源

②打包体积缩小
This commit is contained in:
张家训
2026-06-16 18:19:04 +08:00
parent a641796a0b
commit 711193a503
8 changed files with 338 additions and 139 deletions
+8 -8
View File
@@ -19,29 +19,29 @@ echo ========== WorkUtils 生产构建 ==========
echo.
:: 1. 杀掉可能占用 target 的进程
echo [1/4] 清理残留进程...
echo [1/4] Clean stale processes...
taskkill /f /im java.exe 2>nul
taskkill /f /im workutils.exe 2>nul
:: 2. Maven 打包
echo.
echo [2/4] Maven 编译打包...
call "%PROJECT_DIR%mvnw.cmd" clean package -DskipTests -q
echo [2/4] Maven build...
call "%PROJECT_DIR%\mvnw.cmd" clean package -DskipTests -q
if %errorlevel% neq 0 (
echo [ERROR] Maven 打包失败!
echo [ERROR] Maven build failed!
pause
exit /b 1
)
:: 3. 提取版本号
for /f "tokens=2 delims=>" %%i in ('findstr /c:"<version>" "%PROJECT_DIR%pom.xml" ^| findstr /v "xml" ^| findstr /n "1" ^| findstr "1:"') do (
for /f "tokens=2 delims=>" %%i in ('findstr /c:"<version>" "%PROJECT_DIR%\pom.xml" ^| findstr /v "xml" ^| findstr /n "1" ^| findstr "1:"') do (
for /f "tokens=1 delims=<" %%v in ("%%i") do set VERSION=%%v
)
if "%VERSION%"=="" set VERSION=0.0.1-SNAPSHOT
:: 4. 准备发布目录
echo.
echo [3/4] 组装发布包...
echo [3/4] Assemble distribution...
if exist "%DIST%" rd /s /q "%DIST%"
mkdir "%DIST%\workutils" 2>nul
@@ -63,9 +63,9 @@ powershell -Command "Compress-Archive -Path '%DIST%\workutils' -DestinationPath
:: 5. 完成
echo.
echo [4/4] 构建完成!
echo [4/4] Build complete!
echo ============================================
echo 产物位置:
echo Output:
echo exe : target\workutils.exe
echo jar : target\workutils-%VERSION%.jar
echo zip : target\dist\%ZIPNAME%.zip