报错:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile···

maven编译报错:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project common-util: Fatal error compiling

解决思路如下:主要看以下地方java编译版本是否一致
项目中有个别定义的java的版本,和以下编译器中所选取的java版本是否一致
报错:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile···_第1张图片

报错:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile···_第2张图片
报错:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile···_第3张图片
重新编译一下(clean---->install)

你可能感兴趣的:(java,springboot,maven,java)