When idea runs the project, an error message is reported:Error:java: Compilation failed: internal java compiler error
The cause of the problem: the idea syntax you configured and the compilation syntax of the maven configuration are inconsistent.
Such as the following configuration:
File -> Project Structure (configuration is jdk1.8 syntax)
but maven's pom.xml file configuration (configuration is jdk1.7 syntax):
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>7</source>
<target>7</target>
</configuration>
</plugin>
</plugins>
</build>
Solution: change pom.xml to 8
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>8</source>
<target>8</target>
</configuration>
</plugin>
</plugins>
</build>