参考:
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就可以了。