I am trying to get maven working on mac but it complains about not being able to locate $JAVA_HOME, so I set up the env variable in the following way
export JAVA_HOME = $(/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home)
I get maven working with this, but evey time I start a shell I get the following error
-bash: /Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home: No such file or directory
Any thoughts?