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