Search code examples
javamavenannotationslombok

Can't use annotation @data in maven


Let me know how to lombok annotation? Why not, I can't use only @Data annotation?

enter image description here


Solution

  • You have to also install the Lombok plugin on your IDE. Since it doesn't know that some code is generated for you at build time, it will report problems.

    Have a look at http://jnb.ociweb.com/jnb/jnbJan2010.html#installation for installation instructions.