Mvn编译报错

MVN编译报错

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project isms: Fatal error compiling: java.lang.ExceptionInInitializerError: com.sun.tools.javac.code.TypeTags -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

在这里插入图片描述
如图所示,springboot项目启动没有问题,只是mvn compile会报错,经过一番折腾(程序员真的要多学习英语),查看官方文档之后发现lombok版本过低,到mvn仓库中查询一个较新版本修改pom文件即可

我是从原来的1.16.20改成了1.18.12
在这里插入图片描述 便解决了