我在Mac上下载了maven并将其安装在\ DevTools文件夹中。
alias ll='ls -al'
export JAVA_HOME=`/usr/libexec/java_home`
MAVEN_HOME=/DevTools/maven
export PATH="${PATH}:${MAVEN_HOME}/bin"
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
# Setting PATH for Python 3.7
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.7/bin:${PATH}"
export PATH
关闭并重启终端
ln -s apache-maven-3.6.3 maven