Lombok does not work on the IntelligentJ Maven project

Answered

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

 

 

 

 

 

 

 


 

 

 

0
10 comments
I couldn't reproduce the issue with a simple test. Does it help if you clean the maven local repo(~/.m2/repository) and run `mvn clean compile` ?
0

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…😭😭

0
Will you be able to create a sample project ?
0

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.

0

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.

0

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?

0

Hi. Is the following option enabled in your IDE? If not, does it help if you enable it and restart?

0

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…

 

 

0
Hi, could you please share more details of the issue you met? Like what's in the code, and what's the expected result, and what's the actual result?
0

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 !!!

0

Please sign in to leave a comment.