question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No processor claimed any of these annotations

See original GitHub issue

Building a Spring Boot maven project with Lombok dependency using -Xlint:all compiler option produces a compiler warning

COMPILATION WARNING :
-------------------------------------------------------------
No processor claimed any of these annotations: org.springframework.boot.autoconfigure.SpringBootApplication
1 warning

-Xlint -enables all recommended warnings, see javac docs for more details.

Reproduction steps

  • Create a new Spring Boot 1.4.0 RC1 maven project with Spring Initializr with Lombok dependency
  • Modify the build section of the pom file to include maven compiler flag -Xlint:all
<build>
   <plugins>
      <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-compiler-plugin</artifactId>
         <configuration>
            <showDeprecation>true</showDeprecation>
            <showWarnings>true</showWarnings>
            <compilerArgs>
               <arg>-Werror</arg>
               <arg>-Xlint:all</arg>
            </compilerArgs>
         </configuration>
      </plugin>
      <plugin>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-maven-plugin</artifactId>
      </plugin>
   </plugins>
</build>
  • Expect this output
-------------------------------------------------------------
COMPILATION WARNING :
-------------------------------------------------------------
No processor claimed any of these annotations: org.springframework.boot.autoconfigure.SpringBootApplication
1 warning
-------------------------------------------------------------
-------------------------------------------------------------
COMPILATION ERROR :
-------------------------------------------------------------
warnings found and -Werror specified
1 error
-------------------------------------------------------------
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------

If you remove lombok dependency from the pom file, the project builds successfully.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

45reactions
nertzycommented, Jan 19, 2017

You can add -Xlint:-processing to your compiler arguments to silence this warning. You can combine this with -Xlint or -Xlint:all to still run lint on everything else.

1reaction
aaron-haskinscommented, Jul 19, 2016

Might be related to this bug in Lombok.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No processor claimed any of these annotations - Stack Overflow
The javac linter has a number of warnings that are really off-the-wall, and you can't turn them off individually. This is one of...
Read more >
[processing] No processor claimed any of these annotations
variable CHECKERFRAMEWORK defined. The compiler issues "No processor claimed any of these annotations" error. You can see this in the attached output. -Mike...
Read more >
[1.15.2] No processor claimed any of these annotations
They are declared. The warning says "there are annotations that weren't handled by any annotation processor". Which is a stupid warning, ...
Read more >
javac -Xlint:processing check fails when setting sisu-inject as ...
showWarnings reveals the cause: [WARNING] No processor claimed any of these annotations: javax.inject.Inject According to the javac documentation: "The ...
Read more >
Including log4j-core yields a compilation warning with -Xlint:all
... will show the warning below for all annotations in the project. warning: No processor claimed any of these annotations: org.junit.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found