I\'m using Maven with \'Eclipse Kepler JavaEE\'. I have something like this in \'maven-compiler-plugin\' :
In Eclipse, open Window | Preferences | Java | Installed JREs, make sure there's a JDK (and not just a JRE) for Java 1.7, then go to the submenu Execution Environments and mark this JDK as compatible with JavaSE-1.7.
After that, Maven | Update Project should work as desired.
First MVN_HOME
has to be setup and then the JDK
as to browsed instead of JRE
Window--> Preferences--> Java-->Installed JREs
and select JDK
(e.g. : jdk1.7 or jdk1.8
)
the do mvn install it will work