spring-guides / gs-accessing-data-neo4j

Accessing Data with Neo4j :: Learn how to persist objects and relationships in Neo4j's NoSQL data store.
http://spring.io/guides/gs/accessing-data-neo4j/
Apache License 2.0
29 stars 49 forks source link

Unable to resolve some dependencies #3

Closed giuseppegalano closed 10 years ago

giuseppegalano commented 10 years ago

Executing mvn clean package

[INFO] Scanning for projects... [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building gs-acessing-data-neo4j 0.1.0 [INFO] ------------------------------------------------------------------------ Downloading: http://repo.spring.io/libs-snapshot/org/neo4j/neo4j-cypher-dsl/1.9.M04/neo4j-cypher-dsl-1.9.M04.pom [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.780s [INFO] Finished at: Mon Oct 28 17:01:10 CET 2013 [INFO] Final Memory: 7M/156M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project gs-acessing-data-neo4j: Could not resolve dependencies for project org.springframework:gs-acessing-data-neo4j:jar:0.1.0: Failed to collect dependencies for [org.springframework:spring-context:jar:3.2.4.RELEASE (compile), org.springframework:spring-tx:jar:3.2.4.RELEASE (compile), org.springframework.data:spring-data-neo4j:jar:2.2.2.RELEASE (compile), javax.validation:validation-api:jar:1.0.0.GA (compile), org.slf4j:slf4j-log4j12:jar:1.7.5 (compile)]: Failed to read artifact descriptor for org.neo4j:neo4j-cypher-dsl:jar:1.9.M04: Could not transfer artifact org.neo4j:neo4j-cypher-dsl:pom:1.9.M04 from/to spring-snapshots (http://repo.spring.io/libs-snapshot): Not authorized, ReasonPhrase:Unauthorized. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

giuseppegalano commented 10 years ago

I had to change version for spring-data-neo4j dependency in pom.xml to 2.3.2

Works

 <dependency>
            <groupId>org.springframework.data</groupId>
            <artifactId>spring-data-neo4j</artifactId>
            <version>2.3.2.RELEASE</version>
...
</dependency>

Doesn't work

 <dependency>
            <groupId>org.springframework.data</groupId>
            <artifactId>spring-data-neo4j</artifactId>
            <version>2.2.2.RELEASE</version>
...
</dependency>
kdvolder commented 10 years ago

That change works for me too and fixes problems importing into STS (as in this test failure): https://build.springsource.com/browse/STS-GETTINGSTARTEDTESTS-JOB1-389/test/case/109780615

I'll create a pull request shortly.