Please consider using jackson-dataformat-velocypack in combination with jackson-datatype-joda instead. For usage in the ArangoDB Java driver, refer to the official serialization documentation.
Joda-Time module for Java VelocyPack.
Added support for:
- org.joda.time.DateTime;
- org.joda.time.Instant;
- org.joda.time.LocalDate;
- org.joda.time.LocalDateTime;
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-joda</artifactId>
<version>1.0.0</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 VPackJodaModule()).build();