I got error message every time I changed my pom.xml in eclipse.
Build errors for myapp; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to ex
Adding the following two lines at the very beginning of your eclipse.ini file should tell maven where to find JDK:
-vm C:\Program Files\Java\jdk1.6.0_23\bin\javaw.exe
or whatever path you installed JDK into.