Maven doesn't always follow the directions of jenv on a Mac.
Maven will pick up a set JAVA_HOME (unexported) var from /etc/mavenrc
I hope backticks are preserved in this GH issue .....
JAVA_HOME=`/usr/libexec/java_home -v 1.7`
Of course, it would be better to have a jenv command in there....
JAVA_HOME=`jenv javahome local`
There's no current command that shows the true javahome for 'local' or 'global' JDK, and I think it is needed.