I\'m running a Java Maven project on IntelliJ, and I make sure that this project will be compiled by Java 1.8.
I set JRE to version 8 in Run/Debug Configuration
Make sure JAVA_HOME is set to JDK7 or JRE7. This is explained in the
following link
Make sure that you open a new shell an run intellij
The above 4 steps always helped me to troubleshoot such issues.
Look in Build Execution, Deployment > Compiler > Java Compiler
Then look for per module bytecode version
I assume you want to have it in version 8, despite so many comments telling you to set to 7.
You probably missed the setting for the maven runner, this is under Preferences -> Build, Exection, Deployment > Build Tools > Maven > Runner, see attached image. You need to set that to Java 8 as well.