From d069fb448280068fc1e3e3ce8530822208828601 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Sat, 23 Apr 2022 08:57:08 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E6=9C=AC=E5=9C=B0=E6=89=93=E5=8C=85?= =?UTF-8?q?=E5=90=8Ecopy=E8=B5=84=E6=BA=90=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 2 +- backend/pom.xml | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index d05bf5ad7b..ac4cae863b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,7 +18,7 @@ pipeline { export CLASSPATH=$JAVA_HOME/lib:$CLASSPATH export PATH=$JAVA_HOME/bin:/opt/mvnd/bin:$PATH java -version - ./mvnw clean package --settings ./settings.xml + ./mvnw clean package -DskipAntRunForJenkins --settings ./settings.xml mkdir -p backend/target/dependency && (cd backend/target/dependency; jar -xf ../*.jar) ''' } diff --git a/backend/pom.xml b/backend/pom.xml index 17aed5b545..29e6e6cf0c 100644 --- a/backend/pom.xml +++ b/backend/pom.xml @@ -19,6 +19,7 @@ 11 7.15.0 2.7.15 + false @@ -475,6 +476,41 @@ 2.6 + + + org.apache.maven.plugins + maven-antrun-plugin + + + main-class-placement + generate-resources + + ${skipAntRunForJenkins} + + + + + + + + + + + + + + + + + + + + run + + + + + org.apache.maven.plugins maven-dependency-plugin