I am getting below error while using the lombok.
cannot find symbol
[ERROR] symbol: method builder()
[ERROR] symbol: getXXXXXX()
below are the annotation, I am using.
@AllArgsConstructor(access = AccessLevel.PRIVATE)
@Builder(toBuilder = true)
@Data
@NoArgsConstructor(access = AccessLevel.PRIVATE,force = true)
Maven version is 3.5.0
Below is the pom.xml entries.
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.2</version>
<configuration>
<compilerVersion>1.8</compilerVersion>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
<compilerArgument>-proc:none</compilerArgument>
<annotationProcessors>
<annotationProcessor>lombok.launch.AnnotationProcessorHider$AnnotationProcessor</annotationProcessor>
</annotationProcessors>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.16.18</version>
<scope>provided</scope>
</dependency>
</dependencies>
Please advise what is this issue?
Was able to resolve my issue. Did not realize that variables declared final had no setter.
I got the solution of this problem. I had to remove
It should be in the maven compiler plugin section in the pom file.
On Thu, Jan 17, 2019, 21:15 Peng Wu <[email protected] wrote:
hi, where is the -proc:none located?
I got the solution https://github.com/rzwitserloot/lombok/issues/905 of
this problem. I had to remove -proc:none that was preventing the lombok
annotation to be processed.—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/rzwitserloot/lombok/issues/1449#issuecomment-455219097,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AXRe4MMQfytHtNFgoKrJCNHHXTAb270fks5vEJqOgaJpZM4OuYZI
.
i don't know but it solve my problem.
i have two classes use @Builder to generate build method. but one is normal, another is abnormal,everything check is ok. but when i run mvn to compile my project, the error as fellow:
can't not find the symbol method builder()
i try to replace the version of the lombok jar, but even through i make the version is latest, it's not ok.
so, i try to import lombok per class that i reference.
it works! it seems a bug.