Skip to content
Advertisement

Using MapStruct together with Lombok under Quarkus

I’m following the guide at the MapStruct blog and having trouble using this 3 technology together. I’ve been trying several approaches from the MapStruct docs, bug-reports, posts from here but in every case I end up receiving the following exception during the build.

Have anyone successfully used MapStruct together with Lombok under Quarkus? Any help is appreciated.

Strangely the first compile after a mvn clean always succeeds and the second compile or running the application throws this:

JavaScript

Mapper config:

JavaScript

Mapper:

JavaScript

With the pom.xml I have tried several different approaches from all the guides I’ve found for MapStruct+Quarkus and MapStruct+Lombok arrangements. Including the relevant sections from the two main approach:

Shared properties

JavaScript

1. Using plugin annotationProcessorPaths

JavaScript

2. Using mapstruct-processor depencency approach (with and without the maven-compiler-plugin from approach #1. and also with and withouth the annotationProcessorPaths)

JavaScript

Advertisement

Answer

thanks @jste89. I juste invert annotation processor to make it works

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement