From fe58cee73010d041f9b293e3caed4e9095c96d12 Mon Sep 17 00:00:00 2001 From: v-zhangjc9 Date: Tue, 20 May 2025 14:43:56 +0800 Subject: [PATCH] =?UTF-8?q?feat(bin):=20=E4=BF=AE=E6=94=B9=E4=BB=93?= =?UTF-8?q?=E5=BA=93=E5=88=B0=E7=A7=81=E6=9C=89=E4=BB=93=E5=BA=93=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/build-launcher.sh | 2 +- bin/library.sh | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/bin/build-launcher.sh b/bin/build-launcher.sh index 30f76ca..ee6a040 100755 --- a/bin/build-launcher.sh +++ b/bin/build-launcher.sh @@ -6,6 +6,6 @@ deploy service-common service-dependencies service-configuration service-forest configs=(b2a4 b2b1 b2b12) for config in ${configs[*]}; do - mvn -pl service-launcher clean package -D skipTests -P $config + mvn -pl service-launcher clean package -D skipTests -P $config -s $maven_setting upload $root_path/service-launcher/target/service-launcher-$config-1.0.0-SNAPSHOT.jar done diff --git a/bin/library.sh b/bin/library.sh index 4ef7378..4e27e75 100755 --- a/bin/library.sh +++ b/bin/library.sh @@ -1,5 +1,7 @@ #!/bin/bash +maven_setting=/Users/lanyuanxiaoyao/.m2/settings-nas.xml + build_profile=b2b12 upload_username=AxhEbscwsJDbYMH2 @@ -27,10 +29,14 @@ function joining { fi } +function deploy_root() { + mvn deploy -N -D skipTests -s $maven_setting +} + function deploy() { - mvn -pl $(joining , $@) clean install -D skipTests + mvn -pl $(joining , $@) clean deploy -D skipTests -s $maven_setting } function package() { - mvn -pl $(joining , $@) clean package -D skipTests -P $build_profile + mvn -pl $(joining , $@) clean package -D skipTests -P $build_profile -s $maven_setting }