IDEA lombok
error resolution record
Used in the project lombok
, no error was reported when mvn was built, but an error was reported when it was run.
The get and set methods cannot be found.
Baidu learned that if the maven version is inconsistent with the idea lombok version, an error may be reported. will update to the latest version in
the root directory . Still getting an error.pom.xml
lombok
Check External Libraries
the files in the directory of the project and find that
there are two versions oflombok
Maven:org.projectlombok:lombok:1.18.10
Maven:org.projectlombok:lombok:1.18.20
I obviously introduced the latest version 1.18.20
, so 1.18.10
where did the version come from?
Check the file again pom.xml
, it turns out that the sub-project pom.xml
introduced a lower version.
The sub-project removes the reference, and the problem is solved
Reference: Introduction to idea lombok and solutions to red and error reports