修改构建脚本
This commit is contained in:
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@ -20,7 +20,10 @@ pipeline {
|
|||||||
stage('Build with Maven') {
|
stage('Build with Maven') {
|
||||||
steps {
|
steps {
|
||||||
echo "🛠️ 正在使用 Maven 构建..."
|
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
|
||||||
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user