On 10 July 2014 10:15, Ruben <[email protected]> wrote:
>
> I had a similar problem and today I find the solution. I'm working on
> DSpace 3.2 and days ago when I tried to compile it, I saw a problem with
> http://oss.sonatype.org/content/repositories/releases/ and his resources.
> Searching for the fix, I found the page
> http://spoutcraft.org/threads/fixing-your-local-maven-repo.8085/. I
> applied the changes and now my pom.xml looks like this:
>
> <repositories>
> <!-- <repository>
> <id>sonatype-releases</id>
> <name>Sonatype Releases Repository</name>
> <url>http://oss.sonatype.org/content/repositories/releases/
> </url>
> </repository>
> -->
>
>
> <repository>
> <id>sonatype-nexus-releases</id>
> <url>https://oss.sonatype.org/content/repositories/releases
> </url>
> </repository>
> <repository>
> <id>sonatype-nexus-snapshots</id>
> <url>https://oss.sonatype.org/content/repositories/snapshots
> </url>
> <snapshots>
> <enabled>true</enabled>
> <updatePolicy>always</updatePolicy>
> </snapshots>
> </repository>
>
>
>
> </repositories>
>
> Try to change this, remove .m2 completely and compile with 'mvn clean
> package'.
>
> Good luck
Thanks, Ruben. I did as you suggested, but still the same issue:
dspace@dspace:~/dspace-4.1-src-release$ vi pom.xml
<repositories>
<!--
<repository>
<id>sonatype-releases</id>
<name>Sonatype Releases Repository</name>
<url>http://oss.sonatype.org/content/repositories/releases/
</url>
</repository>
-->
<repository>
<id>sonatype-nexus-releases</id>
<url>https://oss.sonatype.org/content/repositories/releases
</url>
</repository>
<repository>
<id>sonatype-nexus-snapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots
</url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
</repositories>
dspace@dspace:~/dspace-4.1-src-release$ rm -rf ~/.m2/
dspace@dspace:~/dspace-4.1-src-release$ mvn -U clean package
...
Downloading:
http://oss.sonatype.org/content/groups/sourceforge//org/sonatype/oss/oss-parent/3/oss-parent-3.pom
184b downloaded (oss-parent-3.pom)
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
'780ba3cf6b6eb0f7c9f6d41d8d25a86a2f46b0c4'; remote = '<html>
<head><title>301' - RETRYING
Downloading:
http://oss.sonatype.org/content/groups/sourceforge//org/sonatype/oss/oss-parent/3/oss-parent-3.pom
184b downloaded (oss-parent-3.pom)
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
'780ba3cf6b6eb0f7c9f6d41d8d25a86a2f46b0c4'; remote = '<html>
<head><title>301' - IGNORING
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).
Project ID:
com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:jar:1.2
Reason: Cannot find parent: org.sonatype.oss:oss-parent for project:
com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:jar:1.2
for project
com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:jar:1.2
Surely this can't be affecting everybody who is installing DSpace?
Sean
--
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette