brew install maven
#java
export JAVA_HOME=/usr/local/opt/openjdk@8/libexec/openjdk.jdk/Contents/Home
export PATH=$JAVA_HOME/bin:/usr/local/bin:$PATH
export CLASS_PATH=$JAVA_HOME/lib
#Maven
export MAVEN_HOME=/usr/local/Cellar/maven/3.9.5
export PATH=$MAVEN_HOME/bin:$PATH
标签:bin,配置,环境,maven,export,usr,PATH,HOME
From: https://www.cnblogs.com/mark-zh/p/17868931.html