Maven Error

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Maven Error

Henry Atsu Agbodza-2
Dear all,
i kindly need support on this. I'm trying to setup a test instance of Dspace 4.1 and i got stuck on this point  mvn -U package. I am using maven 2 and openjdk. I removed the ~/.m2 directory (rm -rf /home/dspace/.m2) and did a redo but still the same result.
Below is the error stack:

dspace@dspacetest:~$ cd /home/dspace/source
dspace@dspacetest:~/source$ mvn -U package
[INFO] Scanning for projects...
184b downloaded  (oss-parent-7.pom)
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '780ba3cf6b6eb0f7c9f6d41d8d25a86a2f46b0c4'; remote = '<html>
<head><title>301' - RETRYING
184b downloaded  (oss-parent-7.pom)
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '780ba3cf6b6eb0f7c9f6d41d8d25a86a2f46b0c4'; remote = '<html>
<head><title>301' - IGNORING
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: org.dspace:dspace-parent:pom:4.1

Reason: Cannot find parent: org.sonatype.oss:oss-parent for project: org.dspace:dspace-parent:pom:4.1 for project org.dspace:dspace-parent:pom:4.1


[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.sonatype.oss:oss-parent for project: org.dspace:dspace-parent:pom:4.1 for project org.dspace:dspace-parent:pom:4.1
        at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:404)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:272)
        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.project.ProjectBuildingException: Cannot find parent: org.sonatype.oss:oss-parent for project: org.dspace:dspace-parent:pom:4.1 for project org.dspace:dspace-parent:pom:4.1
        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.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:508)
        at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:200)
        at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:604)
        at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:487)
        at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:391)
        ... 12 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/7/oss-parent-7.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)
        ... 18 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Tue Jun 17 14:55:41 GMT 2014
[INFO] Final Memory: 2M/58M
[INFO] ------------------------------------------------------------------------





--
Sincerely Yours,

Henry Atsu Agbodza
Library Systems and Research Support, 
Academic Computing Unit,
University of Ghana Computing Systems (UGCS)
Room G3, Ground Floor - East Wing, 
Balme Library
Legon
Tel.: +233 (0) 207 027360
IP Phone: 2442

University of Ghana Digital Collection (UGSpace)
University of Ghana Online Catalogue (UGCat)
University of Ghana Research Portal
University of Ghana Off - Campus Access to E - Resources

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
DSpace-tech mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Reply | Threaded
Open this post in threaded view
|

Re: Maven Error

Anja Le Blanc
oss.sonatype.org changed from the http to https protocol. What you are
getting back at the moment is an html page which tells you that the web
site has permanently moved.

Change the location of that repository in the main pom.xml to (note:
https -- everything else stays the same)

<repositories>
         <repository>
             <id>sonatype-releases</id>
             <name>Sonatype Releases Repository</name>
 
<url>https://oss.sonatype.org/content/repositories/releases/</url>
         </repository>
     </repositories>

Regards,
Anja

On 17/06/2014 16:08, Henry Atsu Agbodza wrote:

> Dear all,
> i kindly need support on this. I'm trying to setup a test instance of
> Dspace 4.1 and i got stuck on this point**/mvn -U package. I am using
> maven 2 and openjdk. I removed /the ~/.m2 directory (rm -rf
> /home/dspace/.m2) and did a redo but still the same result.
> Below is the error stack:
>
> dspace@dspacetest:~$ cd /home/dspace/source
> dspace@dspacetest:~/source$ mvn -U package
> [INFO] Scanning for projects...
> Downloading:
> http://oss.sonatype.org/content/repositories/releases//org/sonatype/oss/oss-parent/7/oss-parent-7.pom
> 184b downloaded  (oss-parent-7.pom)
> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
> '780ba3cf6b6eb0f7c9f6d41d8d25a86a2f46b0c4'; remote = '<html>
> <head><title>301' - RETRYING
> Downloading:
> http://oss.sonatype.org/content/repositories/releases//org/sonatype/oss/oss-parent/7/oss-parent-7.pom
> 184b downloaded  (oss-parent-7.pom)
> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
> '780ba3cf6b6eb0f7c9f6d41d8d25a86a2f46b0c4'; remote = '<html>
> <head><title>301' - IGNORING
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error building POM (may not be this project's POM).
>
>
> Project ID: org.dspace:dspace-parent:pom:4.1
>
> Reason: Cannot find parent: org.sonatype.oss:oss-parent for project:
> org.dspace:dspace-parent:pom:4.1 for project
> org.dspace:dspace-parent:pom:4.1
>
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.reactor.MavenExecutionException: Cannot find parent:
> org.sonatype.oss:oss-parent for project:
> org.dspace:dspace-parent:pom:4.1 for project
> org.dspace:dspace-parent:pom:4.1
>          at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:404)
>          at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:272)
>          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.project.ProjectBuildingException: Cannot
> find parent: org.sonatype.oss:oss-parent for project:
> org.dspace:dspace-parent:pom:4.1 for project
> org.dspace:dspace-parent:pom:4.1
>          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.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:508)
>          at
> org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:200)
>          at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:604)
>          at
> org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:487)
>          at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:391)
>          ... 12 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/7/oss-parent-7.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)
>          ... 18 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Tue Jun 17 14:55:41 GMT 2014
> [INFO] Final Memory: 2M/58M
> [INFO]
> ------------------------------------------------------------------------
>
>
> /
> /
> /
> /
>
> --
> */Sincerely Yours,/*
> */
> /*
> */Henry Atsu Agbodza/*
> */Library Systems and Research Support, /*
> */Academic Computing Unit,/*
> */University of Ghana Computing Systems (UGCS)/*
> */Room G3, Ground Floor - East Wing, /*
> */Balme Library/*
> */Legon/*
> */Tel.: +233 (0) 207 027360/*
> */IP Phone: 2442/*
>
> /University of Ghana Digital Collection (UGSpace)
> <http://ugspace.ug.edu.gh:8080/xmlui/>
> University of Ghana Online Catalogue (UGCat) <http://library.ug.edu.gh/>
> University of Ghana Research Portal <http://libguides.ug.edu.gh>
> University of Ghana Off - Campus Access to E - Resources
> <http://ezproxy.ug.edu.gh/>/
>
>
> ------------------------------------------------------------------------------
> HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
> Find What Matters Most in Your Big Data with HPCC Systems
> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
> Leverages Graph Analysis for Fast Processing & Easy Data Exploration
> http://p.sf.net/sfu/hpccsystems
>
>
>
> _______________________________________________
> DSpace-tech mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
DSpace-tech mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Reply | Threaded
Open this post in threaded view
|

Maven error

Webshet, Sisay (ILRI)
In reply to this post by Henry Atsu Agbodza-2

Hi All

 

Iam installing dspace 4.1 on Ubuntu 14.04 LTS. Iam using maven 3.0.5 and

cd /home/xxxxxxx/dspace-4.1-src-release

 

and   renaming build.properties to test.properties  and run mvn -U clean package -Denv=test

 

[ERROR] Failed to execute goal on project dspace-solr: Could not resolve dependencies for project org.dspace:dspace-solr:war:5.0-SNAPSHOT: Failed to collect dependencies at org.apache.solr:solr-core:jar:4.4.0 -> org.restlet.jee:org.restlet:jar:2.1.1: Failed to read artifact descriptor for org.restlet.jee:org.restlet:jar:2.1.1: Could not transfer artifact org.restlet.jee:org.restlet:pom:2.1.1 from/to maven-restlet (http://maven.restlet.org): Connection to http://maven.restlet.org refused: Connection refused -> [Help 1]

 

Can anybody helps me


------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Reply | Threaded
Open this post in threaded view
|

Re: Maven error

Tim Donohue
Administrator
Hi,

This looks to be related to a known issue with Solr (which DSpace uses):

https://jira.duraspace.org/browse/DS-1921

Essentially, there is a dependency in Solr ("restlet") which is not in
the normal Maven repository.  Instead it's off in a third-party hosted
site at http://maven.restlet.org

It looks like at the time you tried to build DSpace, that third-party
siet (http://maven.restlet.org) was unavailable or temporarily down. You
may want to try the build again -- hopefully this time that site will be
available.

Unfortunately we are waiting on this to be resolved by the Restlet team.
They are working on it, and as soon as they fix the problem, we'll make
sure to update DSpace as well.

- Tim

On 6/24/2014 8:39 AM, Webshet, Sisay (ILRI) wrote:

> Hi All
>
> Iam installing dspace 4.1 on Ubuntu 14.04 LTS. Iam using maven 3.0.5 and
>
> cd /home/xxxxxxx/dspace-4.1-src-release
>
> and   renaming build.properties to test.properties  and run mvn -U clean
> package -Denv=test
>
> [ERROR] Failed to execute goal on project dspace-solr: Could not resolve
> dependencies for project org.dspace:dspace-solr:war:5.0-SNAPSHOT: Failed
> to collect dependencies at org.apache.solr:solr-core:jar:4.4.0 ->
> org.restlet.jee:org.restlet:jar:2.1.1: Failed to read artifact
> descriptor for org.restlet.jee:org.restlet:jar:2.1.1: Could not transfer
> artifact org.restlet.jee:org.restlet:pom:2.1.1 from/to maven-restlet
> (http://maven.restlet.org): Connection to http://maven.restlet.org
> refused: Connection refused -> [Help 1]
>
> Can anybody helps me
>
>
>
> ------------------------------------------------------------------------------
> 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
> [hidden email]
> 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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Reply | Threaded
Open this post in threaded view
|

Re: Maven Error

Alejandra T
This post has NOT been accepted by the mailing list yet.
In reply to this post by Anja Le Blanc
Anja Le Blanc

Muchas Gracias!!
Reply | Threaded
Open this post in threaded view
|

Re: Maven Error

Magnetita
This post has NOT been accepted by the mailing list yet.
In reply to this post by Henry Atsu Agbodza-2
Intentando instalar dspace 4.2.2

me salia el mismo error

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

entonces, revise  el archivo pom como lo mencionan pero el archivo ya esta corregido, es decir, tiene https
revise mi version de maven con mvn -v y me devolvio que tenia la 2.2
Apache Maven 2.2.1

Así que verifique en debian, y vi que estaba disponible la 3

Desinstale la version 2, descargue el .deb de maven version 3

Apache Maven 3.0.4
Maven home: /usr/share/maven
Java version: 1.6.0_31, vendor: Sun Microsystems Inc.
Java home: /usr/lib/jvm/java-6-openjdk/jre
Default locale: es_MX, platform encoding: UTF-8
OS name: "linux", version: "2.6.32-5-686", arch: "i386", family: "unix"

borre el directorio .m2/ del home de root
# rm - R .m2/
y limpie el mvn
#mvn clean
y ejecute el mvn package y funciono =)

Espero que les ayude mi experiencia.

Nota: la version que baje de dspace es la  dspace-4.2-src-release

Saludos