Maven MojoExecutionException
set JAVA_HOME
to jdk not to JDK_DIR/jre
, See this question for how to set the value
If you're using Eclipse, go to Windows->Preferences. Under Java->Installed JREs, double click on the item in the list and make sure the JRE home points to a JDK (for example, set it to "C:\Program Files\Java\jdk1.7.0_60"), and leave everything else the same.