Or easier, add this to your pom’s properties
section:
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
More Related Contents:
- IntelliJ inspection gives “Cannot resolve symbol” but still compiles code
- Adding external library to artifact jar in IntelliJ IDEA
- Import Maven dependencies in IntelliJ IDEA
- Maven Compilation Error: (use -source 7 or higher to enable diamond operator)
- MessageBodyProviderNotFoundException while running jar from command line
- JAVA_HOME should point to a JDK not a JRE
- Maven plugins can not be found in IntelliJ
- Maven Java Version Configuration ignored by Eclipse/Idea
- stop IntelliJ IDEA to switch java language level every time the pom is reloaded (or change the default project language level)
- Adding resources in IntelliJ for Maven project
- How to make a “fat jar” of a Maven project? [duplicate]
- Multi-module JavaFX maven project packaging issue
- Spring MVC using tomcat, maven and intelliJ Error [duplicate]
- IntelliJ – Convert a Java project/module into a Maven project/module
- IntelliJ doesn’t load javafx packages from Maven dependencies (JavaFX 17)
- BUG! exception in phase ‘semantic analysis’
- Why so red? IntelliJ seems to think every declaration/method cannot be found/resolved
- How to force IntelliJ to download javadocs with Maven?
- IntelliJ GUI Designer Maven Executable JAR Export
- Java and I need help understanding what code to write out
- Spring-Boot Jersey: allow Jersey to serve static content
- Why is Maven downloading the maven-metadata.xml every time?
- Maven dependencies not visible in WEB-INF/lib
- Unable to complete the scan for annotations for web application [/app] due to a StackOverflowError
- Jetty 11 Doesn’t Detect Servlets
- How do you stop Proguard from removing type parameters?
- How to download SNAPSHOT version from maven SNAPSHOT repository?
- How to Exclude properties file from jar file?
- Using antcontrib task via maven-antrun-plugin
- maven missing dependency jta-1.0.1b