Error:java: Compilation failed: internal java compiler error
JDK版本不一致所导致的,修改下面的四个方面的JDK为相同版本即可。
1、查看项目的jdk
File ->Project Structure->Project Settings ->Project
2、查看工程的jdk
File ->Project Structure->Project Settings -> Modules -> Sources ->
3、查看idea中Java配置
4.修改pom.xml中的版本为1.8
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin>