Maven requires JDK to compile. In Eclipse you need to CHANGE/ REPLACE your JRE to the JDK path that your JAVA_HOME points to. Navigate to Window > Preferences > Java > Installed JREs.
Make sure that the maven-compiler-plugin in you pom.xml has the source and target of the java version in your JAVA_HOME
http://learn-automation.com/maven-no-compiler-is-provided-in-this-environment-selenium/