I\'m new to both Maven and IntelliJ IDEA.
I have a Maven project written in Java 8. Whenever I try to build it (Maven Projects window -> Lifecycle -> compile -> Run
Adding below lines to root(project level) pom.xml worked me to resolve above issue: (both of the options worked for me)
Option 1:
1.8 1.8
Option 2:
org.apache.maven.plugins maven-compiler-plugin 1.8 1.8
originally posted at: IntelliJ IDEA 13 uses Java 1.5 despite setting to 1.7