No processor claimed any of these annotations
See original GitHub issueBuilding 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:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.Might be related to this bug in Lombok.