Mac 关闭终端后,环境变量失效,每次都需source .bash_profile 问题. 解决方法:每次打开终端自己加载这个变量 vim .zshrc source ~/.bash_profile mvn -v