Hi Päivi,

We also encountered this problem recently and it appears that something has
changed on the sonatype side.
The fix we where able to come with it was to use maven 3 instead of maven 2
to build our DSpace.


Hope this helps,

Kind regards,

[image: logo]
Kevin Van de Velde *@mire*
*2888 Loker Avenue East, Suite 315, Carlsbad, CA. 92010*
*Esperantolaan 4, Heverlee 3001, Belgium*
www.atmire.com<http://atmire.com/website/?q=services&utm_source=emailfooter&utm_medium=email&utm_campaign=kevinvdv>


On 3 April 2014 10:13, Päivi Rosenström <[email protected]>wrote:

> Hi !
>
> While attempting to build DSpace 3.2 code (previously worked ok)
> getting the following error message:
>
> INFO] Building jar:
> /data/source-dspace/dspace-api/target/dspace-api-3.2.jar
> [INFO] [jar:test-jar {execution: default}]
> [INFO] Skipping packaging of the test-jar
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building DSpace Addon Modules
> [INFO]    task-segment: [package]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [enforcer:enforce {execution: enforce-maven}]
> [INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building DSpace Kernel :: Additions and Local Customizations
> [INFO]    task-segment: [package]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] artifact org.dspace:dspace-api-lang: checking for updates from
> sonatype-releases
> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
> 'ef3dc2ec718a24931364e81249c0933d3d0cc682'; remote = '<html>
> <head><title>301' - RETRYING
> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
> 'ef3dc2ec718a24931364e81249c0933d3d0cc682'; remote = '<html>
> <head><title>301' - IGNORING
> [INFO] artifact org.dspace:dspace-api-lang: checking for updates from
> central
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
>
> Unable to get dependency information: Unable to read local copy of
> metadata: Cannot read metadata from
> '/home/tomcat/.m2/repository/org/dspace/dspace-api-lang/maven-metadata-sonatype-releases.xml':
> end tag name </body> must match start tag name <hr> from line 5 (position:
> TEXT seen ...</center>\r\n</body>...
> @6:8)
>    org.dspace:dspace-api-lang:jar:null
>
> from the specified remote repositories:
>    central (http://repo1.maven.org/maven2),
>    sonatype-nexus-snapshots
> (https://oss.sonatype.org/content/repositories/snapshots),
>    sonatype-releases (
> http://oss.sonatype.org/content/repositories/releases/)
>
> Path to dependency:
>          1) org.dspace.modules:additions:jar:3.2
>
>
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1 minute 6 seconds
> [INFO] Finished at: Thu Apr 03 10:51:51 EEST 2014
> [INFO] Final Memory: 79M/567M
> [INFO]
> ------------------------------------------------------------------------
> Build failure! Aborting.
> Error code 1
>
> I compared previous file
>
> .m2/repository/org/dspace/dspace-api-lang/maven-metadata-sonatype-releases.xml
> with the new one and noticed the following:
>
> previous file:
> <metadata>
>    <groupId>org.dspace</groupId>
>    <artifactId>dspace-api-lang</artifactId>
>    <versioning>
>      <latest>4.1.0</latest>
>      <release>4.1.0</release>
>      <versions>
>        <version>1.5.0.0</version>
>        <version>1.5.2.0</version>
>        <version>1.5.2.1</version>
>        <version>1.6.0.0</version>
>        <version>1.6.0.1</version>
>        <version>1.6.1.0</version>
>        <version>1.6.2.0</version>
>        <version>1.7.0.1</version>
>        <version>1.7.1.0</version>
>        <version>1.8.0.0</version>
>        <version>1.8.0.1</version>
>        <version>1.8.0.2</version>
>        <version>1.8.0.3</version>
>        <version>3.0.0</version>
>        <version>3.0.1</version>
>        <version>3.0.2</version>
>        <version>3.0.3</version>
>        <version>4.0.0</version>
>        <version>4.1.0</version>
>      </versions>
>      <lastUpdated>20140228192546</lastUpdated>
>    </versioning>
> </metadata>
>
> New file:
> <html>
> <head><title>301 Moved Permanently</title></head>
> <body bgcolor="white">
> <center><h1>301 Moved Permanently</h1></center>
> <hr><center>nginx/0.8.54</center></hr>
> </body>
> </html>
>
> => so it seems that the location of the file
> maven-metadata-sonatype-releases.xml has been permanently changed...
> Same problem with the file
> .m2/repository/org/dspace/dspace-xmlui-lang/maven-metadata-sonatype-releases.xml.
> Attempt to clean the local .m2 repository does not
> help.
>
> How to fix this ? Thanks in advance !
>
> Päivi R
>
>
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> 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

<<inline: @mire_web_2.jpg>>

------------------------------------------------------------------------------
_______________________________________________
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

Reply via email to