I\'m compiling a project in Eclipse using m2eclipse. I set the JDK path in Eclipse like this:
Windows-->preferences-->installed jres--> jdk1.7.xx p
Try this.
... ... maven-compiler-plugin 3.1 true path to jdk \bin\javac.exe