Initial commit

This commit is contained in:
2026-08-13 15:57:51 +08:00
commit eb4ab93ab2
102 changed files with 4295 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
param([switch]$SkipTests = $true)
$ErrorActionPreference = 'Stop'
$rootPom = Join-Path (Split-Path $PSScriptRoot -Parent) 'pom.xml'
$arguments = @('-f', $rootPom, 'clean', 'verify')
if ($SkipTests) {
$arguments += '-DskipTests'
}
& mvn @arguments
if ($LASTEXITCODE -ne 0) {
throw "MAVEN_BUILD_FAILED: $LASTEXITCODE"
}
+24
View File
@@ -0,0 +1,24 @@
$ErrorActionPreference = 'Stop'
$root = Split-Path $PSScriptRoot -Parent
$forbiddenDirectories = @('auth', 'iam', 'order', 'firstleg', 'common-core', 'common-web',
'common-security', 'common-openapi', 'common-audit', 'common-event-contract')
foreach ($directory in $forbiddenDirectories) {
if (Test-Path (Join-Path $root $directory)) {
throw "FORBIDDEN_DIRECTORY: $directory"
}
}
$pomFiles = Get-ChildItem -Path $root -Recurse -Filter pom.xml
foreach ($pom in $pomFiles) {
$document = New-Object System.Xml.XmlDocument
$document.Load($pom.FullName)
}
$excluded = Get-ChildItem -Path $root -Recurse -Directory |
Where-Object { $_.Name -in @('.git', '.idea', 'target') }
if ($excluded) {
throw "EXCLUDED_DIRECTORY: $($excluded.FullName -join ',')"
}
Write-Host "BOUNDARY_AND_POM_XML_OK"
+18
View File
@@ -0,0 +1,18 @@
# 在当前 PowerShell 会话中执行:. .\scripts\local-env.ps1
$env:NACOS_SERVER_ADDR = '127.0.0.1:8858'
$env:NACOS_NAMESPACE = 'public'
$env:NACOS_GROUP = 'BAIYUE'
$env:REDIS_HOST = '127.0.0.1'
$env:REDIS_PORT = '6380'
$env:SPRING_DATA_REDIS_HOST = '127.0.0.1'
$env:SPRING_DATA_REDIS_PORT = '6380'
$env:FILE_STORAGE_ROOT = 'D:/baiyue-lastleg-runtime/uploads'
$env:GATEWAY_PORT = '9300'
$env:LASTLEG_PORT = '9303'
$env:WAREHOUSE_PORT = '9305'
$env:FILE_PORT = '9306'
$env:PRINT_PORT = '9307'
$env:AUDIT_PORT = '9310'
$env:INTEGRATION_PORT = '9311'
$env:EVENT_BRIDGE_PORT = '9312'
Write-Host '已加载尾程本地环境:Nacos 8858,Redis 6380,业务端口 9300~9312'