I am getting the below exception when I run my mvn install. I have even deleted the local repository and ran again getting same exception.
mvn install
<
Looks like problem of configuration for maven compiler in your pom file. Default version java source and target is 1.5, even used JDK has higher version.
To fix, add maven compiler plugin configuration section with higher java version, example:
org.apache.maven.plugins maven-compiler-plugin 3.6.1 1.6 1.6
For more info check these links:
maven compiler
bug report