Lombok does not work on the IntelligentJ Maven project
First of all, Lombok works well on the source code.
But I keep getting this error
java: JPS incremental annotation processing is disabled. Compilation results on partial recompilation may be inaccurate. Use build process "jps.track.ap.dependencies" VM flag to enable/disable incremental annotation processing environment.
java: No processor claimed any of these annotations: NoArgsConstructor,ResponseBody,Scheduled,Controller,RequestParam,Getter,ModelAttribute,RequestMapping,Autowired,Component,AllArgsConstructor,Service,Data,SessionAttribute,Setter,Param
plugins ok
both pom.xml - dependency OK
(I also changed it to 1.18.20, 1.18.22 but it didn't work the same way)
annotation processors - ok
and
I tried rebuilding, invalidating and restarting, but it didn't work
What's the problem?
I wasted 30 hours because of this
Please sign in to leave a comment.
Thank you for your answer. As you said, I deleted the Lombok folder in the local storage,
But
it was not recognized on the source code, so I got a button to add Lombok to the target. So when I added it, it started to recognize it again on the source code, but if you run it the same way
'java: No processor claimed any of these annotations: NoArgsConstructor,ResponseBody,Scheduled,Controller,RequestParam,Getter,ModelAttribute,RequestMapping,Autowired,Component,AllArgsConstructor,Service,Data,SessionAttribute,Setter,Param
'
I see this error again…😭😭
https://github.com/jeongmin-Lee0321/MIAA
*branch - development
It is recognized in new projects, but it only happens in the current project... This happens only when loading from IntelliJ.
Still not reproducible from my side… Can you find lombok in the external library in the project window? Also, check the scope in project structure dialogue. Please upload the zipped log file(Help→Collect Logs and Diagnostic Data) to https://uploads.jetbrains.com.
Thank you so much for your continued help..
As shown in the picture above, I changed the Lombok to 'provided' and 'comply' in the module, but it doesn't work 😭
and I uploaded it as you said, is there anything else I should do?
Hi. Is the following option enabled in your IDE? If not, does it help if you enable it and restart?
I have exactly the same behaviour with lombok 1.18.32, intellij 2024.1.5, bundled maven (3.9.6) and jdk 21.
I have annotation processing, lombok plugin and the lombok check box checked (I also tried to remove it as I have above 1.18.16 but it did not change anything)
Also tried with jdk 17, external maven 3.9.6 or external 3.8.8…
Delete .idea files in from your project and restart intellij. When you run your application using Run As or Debug As Intellij will popup notification to enable Annotation processor, enable it and it works !!!