A library that provides the missing Java 8 type mappers for the Dozer Java Bean Mapper.
The library is published to the Central Repository and can be used as maven dependency in the affected project like below.
<dependency>
<groupId>io.craftsman</groupId>
<artifactId>dozer-jdk8-support</artifactId>
<version>1.0.6</version>
</dependency>
The current mappings are Custom Converters based. Dozer provides (at least) two ways to integrate custom converters. Via XML file or the API. Although the API is the newer one and recommended, the converters must be implemented via XML file because the API does not work (see #242). Regarding the documentation the custom converters must be specified in the global configuration block. The current library comes with a corresponding configuration which can be enabled by the code snippet below, if a configuration block does not already exist, because Dozer does not allow to specify multiple configuration blocks. In this case the configuration block of the dozerJdk8Converters.xml file must be taken over.
List<String> mappingFiles = new ArrayList();
mappingFiles.add("dozerJdk8Converters.xml");
DozerBeanMapper dozerBeanMapper = new DozerBeanMapper();
dozerBeanMapper.setMappingFiles(mappingFiles);
A snapshot deployment (not available without adding the snapshot repository) can be performed with the command below.
mvn deploy
A release deployment can be performed with the commands below.
mvn release:clean release:prepare
# https://github.com/keybase/keybase-issues/issues/2798
# export GPG_TTY=$(tty)
mvn release:perform