cannot find symbol in my Quarkus java 17 maven project

610 views
Skip to first unread message

Ad Gaasbeek

unread,
Aug 27, 2024, 3:13:44 AM8/27/24
to Project Lombok
I have a project in java 8, building a war file. When I add lombok there, it works fine.
I have migrated this project to java 17 and Quarkus, and now I get the error "cannot find symbol" on all my getters. For the sake of testing, I only used @Getters in this project.

I just run 'mvn install'.

I googled around, but am not any closer to answer. There are no other errors in the project.

Daniel López

unread,
Aug 27, 2024, 4:53:51 AM8/27/24
to project...@googlegroups.com
Hi there,
You don't show the Maven compiler plugin configuration, so it's harder to know what's going on, but a typical issue when going from 8 to 17 is that you might have missed adding the annotationProcessorPaths section in the compiler plugin configuration, might that be it?

Cheers!
D.

--
You received this message because you are subscribed to the Google Groups "Project Lombok" group.
To unsubscribe from this group and stop receiving emails from it, send an email to project-lombo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/project-lombok/86be0ed7-7a09-437d-b79d-01afac840b3en%40googlegroups.com.

Ad Gaasbeek

unread,
Aug 27, 2024, 6:46:27 AM8/27/24
to Project Lombok
Thank you for your answer. I actually did what you suggested.
And I just found out what the problem was. There was another annotation processor configured, JPAModelEntityProcessor, once I removed it, everything works fine!

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-compiler-plugin</artifactId>
  <version>${compiler-plugin.version}</version>
  <configuration>
    <annotationProcessorPaths>
      <annotationProcessorPath>
        <groupId>org.hibernate.orm</groupId>
        <artifactId>hibernate-jpamodelgen</artifactId>
        <version>6.5.2.Final</version> <!-- This is required even with a BOM! See below -->
      </annotationProcessorPath>
      <path>
        <groupId>org.projectlombok</groupId>
        <artifactId>lombok</artifactId>
        <version>${lombok.version}</version>
      </path>
      </annotationProcessorPaths>
<!--  <annotationProcessors>-->
<!--    <annotationProcessor>org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor</annotationProcessor>-->
<!--  </annotationProcessors>-->
  </configuration>
</plugin>

Op dinsdag 27 augustus 2024 om 10:53:51 UTC+2 schreef GreenEyed:
Reply all
Reply to author
Forward
0 new messages