Saturday, January 9, 2016

Error:(, ) java: package edu.umd.cs.findbugs.annotations does not exist using Lombok

If you have an error during compilation in IntelliJ Idea and/or maven/gradle

Error:(X, Y) java: package edu.umd.cs.findbugs.annotations does not exist

you've enabled FindBugs Suppress Warnings in lombok.config:

lombok.extern.findbugs.addSuppressFBWarnings = true

but you forgot to add FindBugs to your maven/gradle config...

You might either remove config directive or add FB dependency.

2 comments:

  1. Hi, do you know what dependency should be added specifically ?

    ReplyDelete
  2. FindBugsAnnotations = 3.1.0;

    ReplyDelete