1
0
Fork 0
arangodb/Documentation/Books/Drivers/Java/GettingStarted
Vinay Pyati bc55b61d04 Doc - Update java driver chapter (#5796) 2018-07-09 18:28:58 +02:00
..
README.md Doc - Update java driver chapter (#5796) 2018-07-09 18:28:58 +02:00

README.md

ArangoDB Java Driver - Getting Started

Supported versions

arangodb-java-driverArangoDBnetwork protocolJava version
4.2.x+3.0.0+VelocyStream, HTTP1.6+
4.1.x3.1.0+VelocyStream1.6+
3.1.x3.1.0+HTTP1.6+
3.0.x3.0.xHTTP1.6+
2.7.42.7.x, 2.8.xHTTP1.6+

Note: VelocyStream is only supported in ArangoDB 3.1 and above.

Maven

To add the driver to your project with maven, add the following code to your pom.xml (please use a driver with a version number compatible to your ArangoDB server's version):

ArangoDB 3.x.x

<dependencies>
  <dependency>
    <groupId>com.arangodb</groupId>
    <artifactId>arangodb-java-driver</artifactId>
    <version>4.6.0</version>
  </dependency>
</dependencies>

If you want to test with a snapshot version (e.g. 4.6.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>

Compile the Java Driver

mvn clean install -DskipTests=true -Dgpg.skip=true -Dmaven.javadoc.skip=true -B