Please consider using jackson-dataformat-velocypack in combination with jackson-modules-java8 instead. For usage in the ArangoDB Java driver, refer to the official serialization documentation.
Java 8 module for Java VelocyPack.
Added support for:
java.time.Instant
java.time.LocalDate
java.time.LocalDateTime
java.time.ZonedDateTime
java.time.OffsetDateTime
java.time.ZoneId
java.util.Optional
java.util.OptionalDouble
java.util.OptionalInt
java.util.OptionalLong
To add the dependency to your project with maven, add the following code to your pom.xml:
<dependencies>
<dependency>
<groupId>com.arangodb</groupId>
<artifactId>velocypack-module-jdk8</artifactId>
<version>1.0.3</version>
</dependency>
</dependencies>
If you want to test with a snapshot version (e.g. 1.0.0-SNAPSHOT), add the staging repository of oss.sonatype.org to your pom.xml:
<repositories>
<repository>
<id>arangodb-snapshots</id>
<url>https://oss.sonatype.org/content/groups/staging</url>
</repository>
</repositories>
mvn clean install -DskipTests=true -Dgpg.skip=true -Dmaven.javadoc.skip=true -B
VPack vpack = new VPack.Builder().registerModule(new VPackJdk8Module()).build();