#!/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'
