手动修改(可能会被idea自动改回1.5)
修改为对应的编译版本
在工程的pom中添加如下配置
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
标签:java,编译,Compilation,1.8,idea,failed,compiler
From: https://www.cnblogs.com/heiyu-sec/p/16638723.html