Maven, JAVA_HOME is not defined correctly on Mac OSX
ApplerecommendstosetJAVA_HOMEto“/usr/libexec/java_home“,forexample:$vim.bash_profile exportJAVA_HOME=/usr/libexec/java_home $source.bash_profileBut,whenexecutetheMavencommand,itpromptsfollowingerrorme