Maven compilation error. Failure executing javac, but could not parse the error:javac: invalid flag: -s
The problem is that your maven is using java 5 (as your comment says). You have to change your JAVA_HOME variable to point to jdk 6 or higher. Look at :
Error when using javac: "javac: invalid flag: -s"