79812205

Date: 2025-11-07 10:31:27
Score: 3.5
Natty:
Report link

Thanks @Max for solving this. I needed to put


<dependency>
    <groupId>org.mapstruct</groupId> 
    <artifactId>mapstruct-processor</artifactId> 
    <version>${mapstruct.version}</version> 
</dependency>

as a runtime dependency for some reason. previously i only imported it during the build step during annotation processing. subsequently i had to use spring-boot-mvn-plugin repackage goal to repackage the multiple modules to a standalone fat jar. this allowed the mapper classes to be able to import classes from other modules without errors

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Max
  • Self-answer (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: kevin liu kai