这样配置
M2_HOME=/Users/zhangye/devTools/apache-maven-3.8.4 export PATH=$PATH:$M2_HOME/bin
然后重新导入这个文件 source
欢迎采纳