2

When I try to build my project and include the Neo4j-rest-graphdb dependency the build fails. I have tried several different versions with the same result.

I have included org.neo4j in my dependencies.

All I really want to do is have an easy way of accessing the graphical local db with my java code.

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building GraphDatabaseConnector 0.1
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.neo4j:neo4j-rest-graphdb:jar:2.0.0-SNAPSHOT is missing
, no dependency information available
[WARNING] The POM for org.neo4j:neo4j:jar:2.0.0-SNAPSHOT is missing, no dependen
cy information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.375s
[INFO] Finished at: Sun Nov 24 22:56:58 CET 2013
[INFO] Final Memory: 4M/122M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project GraphDatabaseConnector: Could not reso
lve dependencies for project se.morkeleb:GraphDatabaseConnector:jar:0.1: The fol
lowing artifacts could not be resolved: org.neo4j:neo4j-rest-graphdb:jar:2.0.0-S
NAPSHOT, org.neo4j:neo4j:jar:2.0.0-SNAPSHOT: Failure to find org.neo4j:neo4j-res
t-graphdb:jar:2.0.0-SNAPSHOT in http://m2.neo4j.org was cached in the local repo
sitory, resolution will not be reattempted until the update interval of neo has
elapsed or updates are forced -> [Help 1]

Thank you

Rickard Nilsson
  • 254
  • 3
  • 8
  • possible duplicate of http://stackoverflow.com/questions/4856307/when-maven-says-resolution-will-not-be-reattempted-until-the-update-interval-of – Robin Green Nov 24 '13 at 22:18
  • recommended release of java-rest-binding for neo4j 2.0 is currently: [2.0.0-M06](http://m2.neo4j.org/content/repositories/releases/org/neo4j/neo4j-rest-graphdb/2.0.0-M06/) – Michael Hunger Nov 25 '13 at 00:35

2 Answers2

5

Instead of a snapshot release, change the dependency to use a specific Neo4j version. Snapshots are not reliably published, and are not recommended for application development.

Snapshots should only be used if you are committing changes to Neo4j, rather than building an application based on Neo4j.

Cheers, Andreas

akollegger
  • 1,124
  • 10
  • 13
3

I was actually pointing to a bad repository that didn't contain the version I wanted to use.

After I added

<repository>
        <id>neo4j-release-repository</id>
        <name>Neo4j Maven 2 release repository</name>
        <url>http://m2.neo4j.org/content/repositories/releases/</url>
        <releases>
            <enabled>true</enabled>
        </releases>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
    </repository>

It worked out fine when I used milestone 6.

Rickard Nilsson
  • 254
  • 3
  • 8