Using MapStruct with Quarkus?

Works fine in JVM mode.

Then native build fails with ClassNotFoundException.
Or dev mode ignores new DTO fields.

This happens because of reflection + generated mappers.

The new Quarkiverse MapStruct extension fixes:
- Native reflection registration
- Stale mapper recompilation in quarkus:dev
- No more manual @RegisterForReflection.

https://www.the-main-thread.com/p/quarkus-mapstruct-native-dev-mode-fix

#Quarkus #Java #GraalVM #MapStruct