I\'m new to maven, and also to MacOS.
I have setup maven in my terminal, and when getting the version settings (using mvn -v) it seems it uses JDK 1.6,
mvn -v
add the following to your ~/.mavenrc:
~/.mavenrc
export JAVA_HOME=/Library/Java/JavaVirtualMachines/{jdk-version}/Contents/Home
echo export "JAVA_HOME=\$(/usr/libexec/java_home)" >> ~/.bash_profile