Robert Rieser
Robert Rieser

Reputation: 63

How to add neo4j jdbc 2.3 with-dependencies.jar to maven

how to add the neo4j jdbc 2.3 with-dependencies.jar to my maven xml file. It looks like that at the moment

   <dependency>
        <groupId>org.neo4j</groupId>
        <artifactId>neo4j-jdbc</artifactId>
        <version>2.3-SNAPSHOT</version>
    </dependency>

I get this console log after running my code

No suitable driver found for jdbc:neo4j://localhost:7474/ at java.sql.DriverManager.getConnection(DriverManager.java:596) at java.sql.DriverManager.getConnection(DriverManager.java:233) at jdbcNeo4j.Driver.main(Driver.java:103)

Upvotes: 0

Views: 335

Answers (1)

Luanne
Luanne

Reputation: 19373

I usually include

 <repositories>
        <repository>
            <id>neo4j-public</id>
            <url>http://m2.neo4j.org/content/groups/public</url>
            <releases>
                <enabled>true</enabled>
            </releases>
        </repository>
    </repositories>

The 2.3 snapshot is definitely available there https://m2.neo4j.org/content/groups/public/org/neo4j/neo4j-jdbc/2.3-SNAPSHOT/

Upvotes: 0

Related Questions