I was using Mapstruct since last 3 year with Java 11 and Spring boot 2.6.6. Recently updated project dependencies to Java 17 and Spring Boot 3.2.3. Once I did that having issue in creating the beans of Mapper
Description:
Field myMapper in com.abc.portal.service.UserService required a bean of type
'com.abc.portal.mapper.UserMapper' that could not be found.
Action:
Consider defining a bean of type 'com.abc.portal.mapper.UserMapper' in your configuration.
On the other hand I have all required plugin in pom.xml
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</path>
<path>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct-processor</artifactId>
<version>${org.mapstruct.version}</version>
</path>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok-mapstruct-binding</artifactId>
<version>0.2.0</version>
</path>
<path>
<groupId>com.querydsl</groupId>
<artifactId>querydsl-apt</artifactId>
<version>5.0.0</version>
<classifier>jakarta</classifier>
</path>
<path>
<groupId>jakarta.persistence</groupId>
<artifactId>jakarta.persistence-api</artifactId>
<version>3.1.0</version>
</path>
</annotationProcessorPaths>
<compilerArgs>
<compilerArg>
-Amapstruct.defaultComponentModel=spring
</compilerArg>
</compilerArgs>
</configuration>
</plugin>
Just for sake of double check I have tried with
@Mapper(componentModel = "spring") and mvn clean install
as well. But still no luck for me. Any suggestion would be appreciated.

Add plugin in pom.xml
Then execute
But note that - Run mvn command from terminal not from your IDE. Do not do clean of your project once mvn clean install get successful.