解决方法:
在maven的配置文件pom.xml中,把 <bootclasspath>${java.home}/rt.jar;${java.home}/jce.jar</bootclasspath>
注释即可
reference:
https://blog.csdn.net/u012759397/article/details/52099291
IDEA问题笔记_Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile
https://blog.csdn.net/u013020593/article/details/105478472/