Mac安装配置maven时,出现JAVA_HOME错误
1.错误信息如下:
2.对于Windows系统下解决方案https://blog.csdn.net/frankarmstrong/article/details/69945774,在Mac OS下并不奏效
3.在Mac OS下配置文件 .bash_profile,令JAVA_HOME=$(/usr/libexec/java_home)
4. :wq保存退出,source .bash_profile使更新生效,然后输入man -v命令,输出如图,问题解决