其他分享
首页 > 其他分享> > 【metabase】 02-metabase打包

【metabase】 02-metabase打包

作者:互联网

文章目录

1. 说明

相关信息如下:

版本:metabase-0.39.4
JDK:1.8
OS: Mac
编辑器:IDEA(非必须)

2. 安装homebrew

修改源为清华源(https://mirrors.tuna.tsinghua.edu.cn/help/homebrew/

# 或使用下面的几行命令自动设置
BREW_TAPS="$(brew tap)"
for tap in core cask{,-fonts,-drivers,-versions}; do
    if echo "$BREW_TAPS" | grep -qE "^homebrew/${tap}\$"; then
        # 将已有 tap 的上游设置为本镜像并设置 auto update
        # 注:原 auto update 只针对托管在 GitHub 上的上游有效
        git -C "$(brew --repo homebrew/${tap})" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-${tap}.git
        git -C "$(brew --repo homebrew/${tap})" config homebrew.forceautoupdate true
    else   # 在 tap 缺失时自动安装(如不需要请删除此行和下面一行)
        brew tap --force-auto-update homebrew/${tap} https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-${tap}.git
    fi
done

3. 安装插件

在执行打包构建命令./bin/build 时要求安装clojure/tools tap,在更新完homebrew后执行如下命令brew install clojure/tools/clojure进行安装。(注意:插件安装时有可能需要执行多次才能安装完成)

参考文件:

4. 打包及注意事项

将metabase打包比较简单,在metabase根目录下执行如下命令./bin/build即可。
jar包打完后存放路径:/metabase-0.39.4/target/uberjar/metabase.jar

但有如下事项需要 注意:

标签:metabase,02,git,tap,brew,homebrew,安装,打包
来源: https://blog.csdn.net/seven_zhao/article/details/118733205