Skip to content
Advertisement

MapStruct is not generating implementation classes

I am using Mapstruct and Lombok with maven and IDEA and it is refusing to generate mappers implementation. Config:

JavaScript

Both Mapstruct and Lombok are registered as annotations processors with idea: enter image description here

Implementation files does not generate when I try to build with IDEA or if I try maven clean install.

I have tried changing Java from 11 to 8 and it still does not work. /target/generated-sources/annotations is just empty. Other project with same config is wroking fine.

Advertisement

Answer

Problem was that my mappers were missing annotation @Mapper.

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