I have installed ArangoDB 3.1 RC3 community edition and created maven project with below code
ArangoDB arangoDB = new ArangoDB.Builder().host("127.0.0.1").port(8529).build();
String dbName = "mydb";
try {
arangoDB.createDatabase(dbName);
System.out.println("Database created: " + dbName);
} catch (ArangoDBException e) {
System.err.println("Failed to create database: " + dbName + "; " + e.getMessage());
}
Here is my pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>mydb</groupId>
<artifactId>ArangodbTest</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>ArangodbTest</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
</dependency>
<dependency>
<groupId>com.arangodb</groupId>
<artifactId>arangodb-java-driver</artifactId>
<version>4.0.0</version>
</dependency>
</dependencies>
</project>
Database is not created in ArangoDB and no exceptions are thrown, its keep on running..
I have tried with arangodb-java-driver 4.0.0 and 4.1.0 as well, but still not working
Help me to solve this issue
Thanks in advance