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
It helped me. Just add it in your pom.xml.
By default maven compiler plugin uses Java 1.5 or 1.6, you have to redefine it in your pom.xml.
org.apache.maven.plugins maven-compiler-plugin 1.8 1.8