把 XH巡课 的当前可运行版本放进仓库,方便后续继续改并同步。

This commit is contained in:
itxiaohui committed 2026-11-21 12:31:01 +08:00
commit 6e5107f1b6
134 files changed
+11284

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
# Java 只在这个容器里运行,不安装到 Windows。
param(
[Parameter(ValueFromRemainingArguments = $true)]
[string[]]$MavenArgs
)
$ErrorActionPreference = "Stop"
$root = Split-Path -Parent $PSScriptRoot
$backend = Join-Path $root "backend"
if (-not $MavenArgs -or $MavenArgs.Count -eq 0) {
$MavenArgs = @("test")
}
docker run --rm `
-v "${backend}:/app" `
-v xuenke-m2:/root/.m2 `
-w /app `
maven:3.9.11-eclipse-temurin-21 `
mvn -B @MavenArgs