Dependency <dependency> <groupId>org.modelmapper.extensions</groupId> <artifactId>modelmapper-protobuf</artifactId> <version>${version}</version> </dependency> Registering module modelMapper.registerModule(new ProtobufModule());