Mac使用zsh导致maven命令无效的解决方案 第一步: vim ~/.zshrc 第二步:在.zshrc末尾加上 source ~/.bash_profile; 保存推出了 第三步 source ~/.bash_profile