In my case, it was a problem with a setting in Idea. A project sub-module ended up with a really strange setting in Build, Execution, Deployment -> Compiler -> Annotation Processors
. Changing the sub-module option to Obtain processors from project classpath
fixed the issue.