持续更新
brew 安装
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
JAVA多版本环境
## 终端下载安装
brew install --cask temurin8
brew install --cask temurin11
brew install --cask temurin17## vim ~/.zshrc
export JAVA_8_HOME=$(/usr/libexec/java_home -v1.8)
export JAVA_11_HOME=$(/usr/libexec/java_home -v11)
export JAVA_17_HOME=$(/usr/libexec/java_home -v17)alias java8='export JAVA_HOME=$JAVA_8_HOME'
alias java11='export JAVA_HOME=$JAVA_11_HOME'
alias java17='export JAVA_HOME=$JAVA_17_HOME'# default to Java 8,if choose java11,please input java11 on terminal,so did java17.
java8
MAVEN环境