JVM since3.2.0 Native since3.2.0

Type Conversion using Mapstruct

What’s inside

Please refer to the above link for usage and configuration details.

Maven coordinates

Or add the coordinates to your existing project:


Check the User guide for more information about writing Camel Quarkus applications.


Annotation Processor

To use MapStruct, you must configure your build to use an annotation processor.




dependencies {
    annotationProcessor 'org.mapstruct:mapstruct-processor:{mapstruct-version}'
    testAnnotationProcessor 'org.mapstruct:mapstruct-processor:{mapstruct-version}'

Mapper definition discovery

By default, Camel Quarkus will automatically discover the package paths of your @Mapper annotated interfaces or abstract classes and pass them to the Camel MapStruct component.

If you want finer control over the specific packages that are scanned, then you can set a configuration property in

camel.component.mapstruct.mapper-package-name = com.first.package,org.second.package