You will need to add maven-processor-plugin
to the pom.xml
To ensure the generated classes are created before compilation. This plugin runs annotation processors like those required for Lombok and Hibernate JPA model generation during the generate-sources phase.
https://mvnrepository.com/artifact/org.bsc.maven/maven-processor-plugin[maven-processor-plugin]