javasbtpom.xmlavrosbt-plugin

How to fix No processor claimed any of these annotations: org.apache.avro.specific.AvroGenerated?


I'm having this error: No processor claimed any of these annotations: org.apache.avro.specific.AvroGenerated

How I got the error:

I was trying to implement an Avro serialize and deserialize. So, I generated an Avro Class out of .avsc file using an sbt-avro plugin.

The generated Avro Class has an annotation above @org.apache.avro.specific.AvroGenerated. I tried commenting it out, it didn't solve the issue, and generated classes shouldn't be manually edited.

I kinda searched for this kind of error and it told me to add something to pom xml. However, I'm not sure how, so even after trying to add it in the pom, error still persists.

Is there a sample pom xml that fixes this issue so I can use it as a guide? Or is there any workaround for this? Thanks.


Solution

  • Thanks @cbley, the solution worked, I just had a hard time finding where to put it. I'm running sbt compile and spark-job-server start so I had to add it in our builds.sbt

    javacOptions ++= Seq(
     "-Xlint:-processing"
    )