[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project wechat-server: Fatal error compiling: java.lang.NoSuchFieldError: Class com.sun.tools.javac.tree.JCTree$JCImport does not have member field 'com.sun.tools.javac.tree.JCTree qualid' -> [Help 1]
[ERROR]
自己写的一个小项目,启动正常,打包一直报错
背景:jdk:17
折腾半天
百度之后又说spriingboot和jdk版本不兼容,也有说lombok版本太低导致
换jdk 换maven都不行
最终定位还是lombok版本太低导致,又多个依赖都依赖lombok,直升级了一个lomobok
直接额额改成全局升级lombok版本解决
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.30</version>
</dependency>
</dependencies>
</dependencyManagement>