I am getting the following error or $ mvn compile:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on
I had same issue and i have added below configuration in pom.xml and it works.
maven-compiler-plugin 3.5.1 1.8 1.8