# 验证字典权限调整:crm-dict 测试 + 全反应应重新打包 $env:JAVA_HOME = "C:\Users\luowj\.jdks\jdk-17.0.15" Set-Location "d:\code\crm-backend-matt" # 停掉残留 8081 java 进程(避免锁 fat jar) $c = Get-NetTCPConnection -LocalPort 8081 -State Listen -ErrorAction SilentlyContinue if ($c) { $c | ForEach-Object { Stop-Process -Id $_.OwningProcess -Force -ErrorAction SilentlyContinue } ; Start-Sleep 2 } Write-Output "===== crm-dict tests =====" & mvn.cmd -s settings.xml -pl crm-dict -am test if ($LASTEXITCODE -ne 0) { Write-Output "TEST FAIL"; exit 1 } Write-Output "===== full package =====" & mvn.cmd -s settings.xml clean package -DskipTests if ($LASTEXITCODE -ne 0) { Write-Output "PACKAGE FAIL"; exit 1 } Write-Output "ALL OK"