'Maven cannot do clean install for mapstruct processor

When I am trying to do a clean install after adding the mapstruct dependency and plugin it throws an error that in certain files some getters are missing.

This is because my whole project is not needing the mapping for other dto's and entities.

Is there any way so that I can specify mapstruct to work on a certain entity-dto pair.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source