79156771

Date: 2024-11-04 19:44:56
Score: 0.5
Natty:
Report link

The issue was coming from the maven default jdk. My project was built on java 17 but for some reason when using homebrew to install the project, maven does not check if a java version is already installed and installs the latest jdk (23). After updating the jdk to be used the project runs fine but I also updated my pom to include lombok within the build part:

<plugin>
 <groupId>org.apache.maven.plugins</groupId>
 <artifactId>maven-compiler-plugin</artifactId>
 <version>${maven-compiler-plugin.version}</version>
 <configuration>
   <annotationProcessorPaths>
     <path>
       <groupId>org.projectlombok</groupId>     
       <artifactId>lombok</artifactId>
       <version>${lombok.version}</version>
     </path>
   </annotationProcessorPaths>
 </configuration>
</plugin>
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Luís Casqueiro