[Dspace-tech] Maven Error

30 views
Skip to first unread message

ʚïɞ...liss ...εïз

unread,
Aug 26, 2015, 1:16:20 PM8/26/15
to listaDspace


Hi all,

I am installing dspace 4.1 on windows 7 almost everything ok but when I execute the command"mvn package" I get this error

 
 

royopa

unread,
Aug 26, 2015, 1:16:23 PM8/26/15
to ʚïɞ...liss ...εïз, listaDspace
Hi

Change the line 124  from file [dspace-source]/pom.xml:

from
<target name="Encode any UTF-8 chars in [src]/*.properties">

to
<target name="Encode any UTF-8 chars in properties">


Check this slide to instructions to install and correct this error (slide 32) in Windows (pt_BR).

Regards

Rodrigo




------------------------------------------------------------------------------
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
DSpac...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette



--
Rodrigo Prado de Jesus
http://about.me/royopa
roy...@gmail.com
11 98625-4398 - Tim
11 97339-8451 - Vivo

Henry Atsu Agbodza

unread,
Aug 26, 2015, 1:16:32 PM8/26/15
to dspac...@lists.sourceforge.net
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

Anja Le Blanc

unread,
Aug 26, 2015, 1:16:41 PM8/26/15
to dspac...@lists.sourceforge.net
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
> /
> /
> /
> /
>
> --
> */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/>/
Reply all
Reply to author
Forward
0 new messages