My pom file lists
You have to check Maven version:
mvn -version
You will find the Java version which Maven uses for compilation. You may need to reset JAVA_HOME if needed.