Registry / utility / mapstruct

mapstruct

JSON →
library1.6.3javamavenunverified

Annotation processor for generating type-safe bean mapper implementations at compile time.

<dependency> <groupId>org.mapstruct</groupId> <artifactId>mapstruct</artifactId> <version>1.6.3</version> </dependency>
INSTALL
IMPORT
SIG · MAPSTRUCT
M
mapstruct
utilityjavav1.6.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Mapper
org.mapstruct.Mapper

Defines a mapper interface to convert Car to CarDto.

import org.mapstruct.Mapper; import org.mapstruct.factory.Mappers; @Mapper public interface CarMapper { CarMapper INSTANCE = Mappers.getMapper(CarMapper.class); CarDto carToCarDto(Car car); }
Debug
Known issues
gotchaMapStruct requires annotation processing to be enabled in your build tool (e.g., Maven compiler plugin).
fix
Add maven-compiler-plugin with annotationProcessorPaths including mapstruct-processor.
affects: *
Upgrade
Version history
1.6.3latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
mapstruct — mvn dependency:get mapstruct · libregistry