build: 使用mvnd加速构建过程

This commit is contained in:
CaptainB 2022-04-20 19:19:04 +08:00 committed by 刘瑞斌
parent 86c7eac9ae
commit 5dac719b2b

2
Jenkinsfile vendored
View File

@ -18,7 +18,7 @@ pipeline {
export CLASSPATH=$JAVA_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:/opt/mvnd/bin:$PATH
java -version
mvnd clean package --settings ./settings.xml
mvnd clean install --settings ./settings.xml
mkdir -p backend/target/dependency && (cd backend/target/dependency; jar -xf ../*.jar)
'''
}