feat(bin): 去掉本地仓库依赖

This commit is contained in:
v-zhangjc9
2024-05-26 23:43:55 +08:00
parent 67181e501e
commit bb745b6f82
3 changed files with 18 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
#!/bin/bash
root_path=$(dirname $(cd $(dirname $0);pwd))
source $root_path/bin/library.sh
mvn deploy -N -D skipTests -P local -s ~/.m2/settings-development.xml
mvn install -N -D skipTests
deploy service-common service-dependencies service-configuration service-forest service-cli service-cli/service-cli-core service-executor service-executor/service-executor-core utils/executor
package service-api service-check service-cli/service-cli-runner service-cloud-query service-executor/service-executor-manager service-executor/service-executor-task service-command service-command-pro service-exporter service-flink-query service-gateway service-hudi-query service-info-query service-monitor service-loki-query service-pulsar-query service-queue service-scheduler service-uploader service-web service-yarn-query service-zookeeper-query utils/patch utils/sync

15
bin/install_local_jars.sh Normal file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
# 安装专有jar包到本地仓库
function install_jar() {
group_id=$1
artifact_id=$2
version=$3
file_path=$4
mvn install:install-file -DgroupId=${group_id} -DartifactId=${artifact_id} -Dversion=${version} -Dfile=${file_path}
}
install_jar 'org.apache.flink' 'flink-shaded-hadoop-3-uber' '3.1.1.7.2.9.0-173-9.0' 'C:\Users\Administrator\Desktop\flink-shaded-hadoop-3-uber-3.1.1.7.2.9.0-173-9.0.jar'
install_jar 'io.juicefs' 'juicefs-hadoop' '2.0.0' 'C:\Users\Administrator\Desktop\juicefs-hadoop-2.0.0.jar'

View File

@@ -51,9 +51,9 @@ function joining {
}
function deploy() {
mvn -pl $(joining , $@) clean deploy -D skipTests -P local -s ~/.m2/settings-development.xml
mvn -pl $(joining , $@) clean install -D skipTests
}
function package() {
mvn -pl $(joining , $@) clean package -D skipTests -P local -s ~/.m2/settings-development.xml -P $build_profile
mvn -pl $(joining , $@) clean package -D skipTests -P $build_profile
}