解决:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile

时间:2021-12-29 17:19:22

 

在项目构建的时候遇到了这样的问题:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile(default-compile) on project taotao-manager-pojo: Compilation failure

解决:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile

检查了一下Installed JREs的设置,使用的环境变量为jre

解决:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile

 

解决方法:

将Installed JREs的设置修改为jdk即可.这里选择的其实是JAVA_HOME路径,jdk中包含jre

解决:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile