mac 10.15.3 配置jdk与maven环境变量
mac system 配置文件加载顺序
/etc/profile
/etc/paths
~/.bash_profile
~/.bash_login
~/.profile
~/.bashrc
sudo vim /etc/profile
JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_251.jdk/Contents/Home"
export JAVA_HOME
CLASS_PATH="$JAVA_HOME/lib"
PATH=".$PATH:$JAVA_HOME/bin"
export MAVEN_HOME=/Users/dengbicheng/workspace/tools/maven/apache-maven-3.6.3
export PATH=${MAVEN_HOME}/bin:$PATH
cmd :wq! enter
source /etc/profile