修改构建脚本

This commit is contained in:
2025-07-17 21:18:00 +08:00
parent 09dd9ac959
commit 6df52d0a80

5
Jenkinsfile vendored
View File

@ -20,7 +20,10 @@ pipeline {
stage('Build with Maven') {
steps {
echo "🛠️ 正在使用 Maven 构建..."
sh 'mvn clean package -s settings.xml --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.compiler/java.util=ALL-UNNAMED'
sh '''
export MAVEN_OPTS="--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.compiler/java.util=ALL-UNNAMED"
mvn clean package -s settings.xml
'''
}
}