java: Compilation failed: internal java compiler error

参考:
https://merikan.com/2021/02/unable-to-build-my-project-with-intellij/
https://github.com/projectlombok/lombok/issues/2592

要么Compiler里的,Shared build process VM options加上这个参数:

-Djps.track.ap.dependencies=false

要么提高lombok的版本到1.18.18。

参考:
https://stackoverflow.com/questions/66170975/jps-incremental-annotation-processing-is-disabled-compilation-results-on-partia

1、add -Djps.track.ap.dependencies=false in proper place.
2、In the right of IDEA, click Maven -> Reload All Maven Projects.
3、Also in the Maven -> Excute Maven Goal (represented by a 'm' icon) -> mvn clean -> enter
4、 Then Excute Maven Goal -> mvn install -> enter
5、Build -> Rebuild Project.

最后参考这个:
https://programmerah.com/idea-error-java-compilation-failed-internal-java-compiler-error-19358/

File -> Setting –> Build,Execution,Deployment–> Build Process Heap Size (mBytes):700 changed to 1024 or 8192

把默认的700改成了8192。可能是IDEA默认的构造的heap值太小了。改成8G就可以了。
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值