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 }