Recently we migrated to using mapstruct API in our application. Our build tool is maven so we followed the documentation and added these properties: