Usage of API documented as @since 1.8+
this may useful when development is performed under newer sdk version as the target platform for production
The configuration in pom.xml is.
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
</plugin>
Method 1: open project structure, select modules in the sidebar, and modify the language level in the sources window
Method 2: modify POM. XML to
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<source>11</source>
<target>11</target>
</configuration>
</plugin>
Similar Posts:
- Automatic version change of IntelliJ idea language level and Java compiler
- Maven warnning: ‘build.plugins.plugin.version’ is missing [How to Solve]
- [Solved] Dynamic Web Module 3.0 requires Java 1.6 or newer
- How to Solve IDEA maven Error:Perhaps you are running on a JRE rather than a JDK
- [Solved] Error:java: error: release version 5 not supported & Switch Unrecognized String
- [Solved] Error:java: Compilation failed: internal java compiler error
- [Solved] Error: Package com.sun.xml.internal.bind.v2.model.core does not exist
- Error:java: javacTask: source release 8 requires target release 1.8
- [IDEA] Maven Run Project Error: Diamond operator is not supported in – source 1.5″
- [Solved] MAVEN-COMPILER-PLUGIN Compile Error: FATAL ERROR: UNABLE TO FIND PACKAGE JAVA.LANG IN CLASSPATH OR BOOTCLASSPATH