admin管理员组文章数量:1208155
The project builds and runs successfully via command line, but if I want to build/launch the debugger via Intellij, the lombok @Builder seems not to be recognized:
java: cannot find symbol
symbol: class MyClassBuilder
location: class com.xxx.MyClass
package com.xxx;
import lombok.Builder;
@Builder
public class MyClass {
//code
}
- I have lombok plugin
- I have enabled annotation processing
- I have selected Obtain processors from project class path
- I have tried several debug config changes, invalidate intellij cache/restart but no luck
The project builds and runs successfully via command line, but if I want to build/launch the debugger via Intellij, the lombok @Builder seems not to be recognized:
java: cannot find symbol
symbol: class MyClassBuilder
location: class com.xxx.MyClass
package com.xxx;
import lombok.Builder;
@Builder
public class MyClass {
//code
}
- I have lombok plugin
- I have enabled annotation processing
- I have selected Obtain processors from project class path
- I have tried several debug config changes, invalidate intellij cache/restart but no luck
2 Answers
Reset to default 0The workaround is described in below answer on intellij forum
https://intellij-support.jetbrains.com/hc/en-us/community/posts/23064675521682/comments/23204746556050
as answer is suggesting to include
<version>${lombok.version}</version>
against lombok annotation processor configuration in your pom.xml.
Above solution worked for me!
Solution: IntelliJ Project SDK was setup as java 23; however the build in command line was using java 17 I changed the SDK in IntelliJ project struct to java 17 and the issue got resolved
本文标签: javaSpringBootLombok Debugging in IntelliJStack Overflow
版权声明:本文标题:java - SpringBootLombok Debugging in IntelliJ - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738687563a2106908.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论