美文网首页
java: You aren't using a compile

java: You aren't using a compile

作者: 光剑书架上的书 | 来源:发表于2021-05-28 01:48 被阅读0次

报错问题

java: You`aren't using a compiler supported by lombok, so lombok will not work and has been disabled.
  Your processor is: com.sun.proxy.$Proxy26
  Lombok supports: sun/apple javac 1.6, ECJ

解决

已经有人在github提出了这个问题,也同时提供了两种方法

https://github.com/rzwitserloot/lombok/issues/2592#

方法一

在以下位置加上该配置

-Djps.track.ap.dependencies=false

方法二

更新一下版本到以下版本

<!--Lombok-->
<dependency>
    <groupId>org.projectlombok</groupId>
    <artifactId>lombok</artifactId>
    <version>1.18.14</version>
    <scope>provided</scope>
</dependency>

参考资料

https://blog.csdn.net/wanniwa/article/details/109155143
https://youtrack.jetbrains.com/issue/IDEA-250718#focus=Comments-27-4418347.0-0

相关文章

网友评论

      本文标题:java: You aren't using a compile

      本文链接:https://www.haomeiwen.com/subject/ttujsltx.html