Spring Neo4j REST maven build error

52 views
Skip to first unread message

Abdul Azeez Shaik

unread,
Aug 18, 2012, 6:55:02 AM8/18/12
to ne...@googlegroups.com
Dear all,

I have been facing with below maven build error since morning today, [ERROR]  error reading /Users/Surya/.m2/repository/org/springframework/data/spring-data-neo4j-rest/2.1.0.BUILD-SNAPSHOT/spring-data-neo4j-rest-2.1.0.BUILD-SNAPSHOT.jar; cannot read zip file

I have manually got the jar file and tried deleting the complete maven repository but still couldn't resolve it.
Everything was going great till yesterday and have not made any changes since morning.

Could anyone give me some pointers on how to resolve this issues?

Am using following repository,

<repository>

<id>spring-maven-snapshot</id>

<name>Spring Maven Snapshot Repository</name>

<snapshots>

<enabled>true</enabled>

</snapshots>

<url>http://maven.springframework.org/snapshot</url>

</repository>

When i tried to replace with/add following one, it gives me other errors,

<repository> <id>spring-snapshot</id> <name>Spring Maven SNAPSHOT Repository</name> <url>http://repo.springsource.org/libs-snapshot</url> </repository>

Other errors:Could not resolve dependencies for project org.netvogue.server:netvogue-database-api:jar:1.0-SNAPSHOT: Could not transfer artifact org.apache.httpcomponents:httpclient:jar:4.2-beta1 from/to spring-snapshot (http://repo.springsource.org/libs-snapshot): Access denied to: http://repo.springsource.org/libs-snapshot/org/apache/httpcomponents/httpclient/4.2-beta1/httpclient-4.2-beta1.jar -> [Help 1]


Thanks everyone,
Abdul 

Abdul Azeez Shaik

unread,
Aug 19, 2012, 1:18:55 AM8/19/12
to ne...@googlegroups.com
any pointers to resolve this??

Michael Hunger

unread,
Aug 19, 2012, 5:00:12 AM8/19/12
to ne...@googlegroups.com
The httpclient dependency should be in maven central which is enabled by default.

But we don't need it anymore so you can just remove it from the pom.xml, I do the same.

Michael

--
 
 

Abdul Azeez Shaik

unread,
Aug 19, 2012, 8:27:13 AM8/19/12
to ne...@googlegroups.com
Thanks for the reply Michael.
I tried excluding it from the spring rest neo4j repo,

<exclusion>

                <groupId>org.apache.httpcomponents</groupId>

    <artifactId>httpclient</artifactId>

                </exclusion>

However, it still gives me same error. Also, its not checking the maven central repository which must be enabled by default. Am i missing something here?


--
 
 

Abdul Azeez Shaik

unread,
Aug 19, 2012, 9:56:56 AM8/19/12
to ne...@googlegroups.com
Hi Michael,

When i change the spring data neo4j version to 2.0.1.RELEASE, build is successful.
I tried changing it back to 2.1.0.BUILD-SNAPSHOT and i again see the error.

Is it anything to do with latest snapshot of spring data neo4j? Because, it was working for me till yesterday morning and i have not changed my pom.xml file since last three months.

Thanks,
 Abdul
Reply all
Reply to author
Forward
0 new messages