-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Annotation processor 'lombok.core.AnnotationProcessor' not found #905
Comments
We've changed the classloading infrastructure inside our jar between those versions. The correct annotation processor class has changed to: lombok.launch.AnnotationProcessorHider$AnnotationProcessor Try putting that string in the XML at location: plugins/plugin [maven-compiler-plugin]/configuration/annotationProcessors/annotationProcessor. If this does not work, please re-open the issue. |
When i change AnnotationProcessor class like this: <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.2</version>
<configuration>
<source>${project.java.version}</source>
<target>${project.java.version}</target>
<encoding>${project.build.sourceEncoding}</encoding>
<!--<compilerArgument>-proc:none</compilerArgument>-->
<annotationProcessors>
<annotationProcessor>lombok.launch.AnnotationProcessorHider$AnnotationProcessor</annotationProcessor>
</annotationProcessors>
</configuration>
</plugin> The problem was solved. Thank you so much. |
I accidentally discovered this same solution to my problem as well. I am going to paste the error that might lead future googlers to right information. maven lombok cannot find symbol method |
if anyone still looking for right answer, here it is ;) |
how to add this in a sbt project ? |
I am still getting error, don't know what is going wrong.Please help |
Please correct your pom file. As per https://projectlombok.org/setup/maven
the correct bit of maven compiler plugin configuration looks like this:
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.12</version>
</path>
</annotationProcessorPaths>
…On Tue, Aug 25, 2020, 12:25 Shreyar20 ***@***.***> wrote:
I am still getting error, don't know what is going wrong.Please help
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#905 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABIERIZCS5KACXZ4Z3ZUMTSCOGSRANCNFSM4BOM65VA>
.
|
@rzwitserloot : Why did you hide it, if this kind of setting requires a simple stable path? |
Hi,
I'm using lombok in my entities and want to produce MetaModelEntities. So I used lombok Annotation Processor. When i compile the project it gives below error:
"Annotation processor 'lombok.core.AnnotationProcessor' not found"
Here are my tools versions :
Maven 3.2.5
Java 1.8
Lombok 1.16.6
Here is how i use lombok:
If i use lombok 1.14.8, I don't get see any problem. When i look at the 1.16.6 jar file. lombok.core.AnnotationProcessor is over there but all class extensions are .lombok. I think this causes the problem.
How can i solve it?
The text was updated successfully, but these errors were encountered: