Skip to content
Advertisement

Lombok and Maven

I’m trying to use Lombok with Maven and VRaptor on IntelliJ but it doesn’t work.

I already read some info in stackoverflow but none solved my problem, i already enabled the Annotation Processor in Intellij but still nothing.

I tryied to compile it from command-line too (Windows) and didn’t work.

I also tryed to create another project without maven and add the library, create some classes for test and it works, compile and run perfectly.

Any help?

The project has only 2 class, 1 entity and 1 controller

Here is my pom.xml

JavaScript

Error when i try to compile:

JavaScript

Advertisement

Answer

This should work as is, and has nothing to do with IntelliJ idea. But I would:

  • make sure the @Data annotation is the lombok one
  • remove the repository definition (maven central is fine)
  • use a recent lombok version (1.16.0 as of this writing)
  • rebuild (mvn clean package)

I think the lombok jar is not found by maven in your case or that you might have another @Data.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement