赞
踩
maven 打包的时候mvn clean install -U -DskipTests 报的错
[ERROR] Caused by: java.lang.ClassNotFoundException: com.sun.tools.javac.code.TypeTags
[ERROR] at java.base/java.lang.ClassLoader.findClass(ClassLoader.java:718)
[ERROR] at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)
[ERROR] at lombok.launch.ShadowClassLoader.loadClass(ShadowClassLoader.java:422)
[ERROR] at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
[ERROR] at java.base/java.lang.Class.forName0(Native Method)
[ERROR] at java.base/java.lang.Class.forName(Class.java:315)
[ERROR] at lombok.javac.JavacTreeMaker$SchroedingerType.getFieldCached(JavacTreeMaker.java:156)
[ERROR] at lombok.javac.JavacTreeMaker$TypeTag.typeTag(JavacTreeMaker.java:244)
[ERROR] at lombok.javac.Javac.<clinit>(Javac.java:155)
[ERROR] ... 51 more
原因是lombok版本过低的问题,换成以下版本,问题解决
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.4</version>
</dependency>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。