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
Also in one of my projects, in addition to all of answers above, another try works: Just change Language level in Modules section of Project Structure [image below] []1