Hi Ruben
Is this a bug?
If so, why no bug report.
This is significant.
Cheers
hg
*Hilton Gibson*
Ubuntu Linux Systems Administrator
JS Gericke Library
Room 1025D
Stellenbosch University
Private Bag X5036
Stellenbosch
7599
South Africa
Tel: +27 21 808 4100 | Cell: +27 84 646 4758
http://scholar.sun.ac.za
http://bit.ly/goodir
http://library.sun.ac.za
http://za.linkedin.com/in/hiltongibson
On 10 July 2014 10:15, Ruben <ruben.bo...@csuc.cat> wrote:
> Hi Sean,
>
> 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
>
> On 10/07/14 08:47, Sean Carte wrote:
>
> I've been trying to upgrade from DSpace 3.2 to 4.1 on Ubuntu 12.04.
>
> I edited the main pom.xml so that I'm using
> https://oss.sonatype.org/content/repositories/releases
>
> I deleted the ~/.m2 directory.
>
> I've tried this on three different machines, and even tried installing
> 4.0, which used to work.
>
> What can I do to get past this build error:
>
> [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
>
>
> All the gory details are copied below.
>
> Sean
>
> dspace@dspace:~/dspace-4.1-src-release/dspace$ mvn -U clean package
>
> ...
>
> [INFO] Webapp assembled in [427 msecs]
> [INFO] Building war:
> /home/dspace/dspace-4.1-src-release/dspace/modules/swordv2/target/swordv2-4.1.war
> [INFO] WEB-INF/web.xml already added, skipping
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building DSpace SOLR :: Local Customizations
> [INFO] task-segment: [clean, package]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [clean:clean {execution: default-clean}]
> [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
>
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1 minute 23 seconds
> [INFO] Finished at: Wed Jul 09 08:14:15 SAST 2014
> [INFO] Final Memory: 60M/144M
> [INFO]
> ------------------------------------------------------------------------
> dspace@dspace:~/dspace-4.1-src-release/dspace$ mvn -e -U clean package
>
> ...
>
> [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
>
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Unable to get
> dependency information: Unable to read the metadata file for artifact
> 'com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:jar':
> 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
>
> com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:jar:1.2
>
> from the specified remote repositories:
> apache.snapshots (http://repository.apache.org/snapshots),
> central (http://repo1.maven.org/maven2),
> sonatype-nexus-snapshots (
> https://oss.sonatype.org/content/repositories/snapshots),
> maven-restlet (http://maven.restlet.org),
> sonatype-releases (
> https://oss.sonatype.org/content/repositories/releases/)
>
> Path to dependency:
> 1) org.dspace.modules:solr:war:4.1
> 2) org.dspace:dspace-solr:jar:classes:4.1
> 3) org.apache.solr:solr-core:jar:4.4.0
>
>
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:711)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> at
> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.artifact.resolver.ArtifactResolutionException:
> Unable to get dependency information: Unable to read the metadata file for
> artifact
> 'com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:jar':
> 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
>
> com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:jar:1.2
>
> from the specified remote repositories:
> apache.snapshots (http://repository.apache.org/snapshots),
> central (http://repo1.maven.org/maven2),
> sonatype-nexus-snapshots (
> https://oss.sonatype.org/content/repositories/snapshots),
> maven-restlet (http://maven.restlet.org),
> sonatype-releases (
> https://oss.sonatype.org/content/repositories/releases/)
>
> Path to dependency:
> 1) org.dspace.modules:solr:war:4.1
> 2) org.dspace:dspace-solr:jar:classes:4.1
> 3) org.apache.solr:solr-core:jar:4.4.0
>
>
> at
> org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(DefaultArtifactCollector.java:430)
> at
> org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(DefaultArtifactCollector.java:435)
> at
> org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(DefaultArtifactCollector.java:435)
> at
> org.apache.maven.artifact.resolver.DefaultArtifactCollector.collect(DefaultArtifactCollector.java:74)
> at
> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:316)
> at
> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:304)
> at
> org.apache.maven.plugin.DefaultPluginManager.resolveTransitiveDependencies(DefaultPluginManager.java:1499)
> at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:442)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> ... 17 more
> Caused by:
> org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException:
> Unable to read the metadata file for artifact
> 'com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:jar':
> 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
> at
> org.apache.maven.project.artifact.MavenMetadataSource.retrieveRelocatedProject(MavenMetadataSource.java:200)
> at
> org.apache.maven.project.artifact.MavenMetadataSource.retrieveRelocatedArtifact(MavenMetadataSource.java:94)
> at
> org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(DefaultArtifactCollector.java:387)
> ... 25 more
> Caused by: org.apache.maven.project.ProjectBuildingException: 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
> at
> org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1396)
> at
> org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:823)
> at
> org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:255)
> at
> org.apache.maven.project.artifact.MavenMetadataSource.retrieveRelocatedProject(MavenMetadataSource.java:163)
> ... 27 more
> Caused by: org.apache.maven.project.InvalidProjectModelException: Not a
> v4.0.0 POM. for project org.sonatype.oss:oss-parent at
> /home/dspace/.m2/repository/org/sonatype/oss/oss-parent/3/oss-parent-3.pom
> at
> org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1599)
> at
> org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1571)
> at
> org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:562)
> at
> org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1392)
> ... 30 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 4 minutes 10 seconds
> [INFO] Finished at: Thu Jul 10 08:04:02 SAST 2014
> [INFO] Final Memory: 60M/144M
> [INFO]
> ------------------------------------------------------------------------
> dspace@dspace:~/dspace-4.1-src-release/dspace$
>
>
> --
>
>
> ------------------------------------------------------------------------------
> 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 awardshttp://p.sf.net/sfu/Bonitasoft
>
>
>
> _______________________________________________
> DSpace-tech mailing
> listDSpace-tech@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette:
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
>
>
>
> ------------------------------------------------------------------------------
> 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
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette:
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
------------------------------------------------------------------------------
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
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette