Hello I'm trying to install Dspace, I have install all the prerequisites
and when I'm going to make the maven part I get an error that maven can't
find the parent project in any repository.
Should I add (and if so, how?) a new repository?

Thanks in advance for any help.
Federico.

:/srv/dspace-src/dspace-3.1-release$ sudo -u dspace mvn package


[INFO] Scanning for projects...
Downloading:
http://oss.sonatype.org/content/repositories/releases//org/sonatype/oss/oss-parent/7/oss-parent-7.pom
[INFO] Unable to find resource 'org.sonatype.oss:oss-parent:pom:7' in
repository sonatype-releases (
http://oss.sonatype.org/content/repositories/releases/)
Downloading:
http://repo1.maven.org/maven2/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
[WARNING] Unable to get resource 'org.sonatype.oss:oss-parent:pom:7' from
repository central (http://repo1.maven.org/maven2): Specified destination
directory cannot be created:
/opt/tomcat/.m2/repository/org/sonatype/oss/oss-parent/7
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


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

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


[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Cannot find parent:
org.sonatype.oss:oss-parent for project: org.dspace:dspace-parent:pom:3.1
for project org.dspace:dspace-parent:pom:3.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:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        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:3.1 for project
org.dspace:dspace-parent:pom:3.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.ProjectBuildingException: POM
'org.sonatype.oss:oss-parent' not found in repository: Unable to download
the artifact from any repository

  org.sonatype.oss:oss-parent:pom:7

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  sonatype-releases (http://oss.sonatype.org/content/repositories/releases/)

 for project org.sonatype.oss:oss-parent
        at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:605)
        at
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1392)
        ... 18 more
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
Unable to download the artifact from any repository

  org.sonatype.oss:oss-parent:pom:7

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  sonatype-releases (http://oss.sonatype.org/content/repositories/releases/)


        at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:228)
        at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:90)
        at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:558)
        ... 19 more
Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to
download the artifact from any repository
        at
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:404)
        at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:216)
        ... 21 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Fri Apr 05 17:03:11 CST 2013
[INFO] Final Memory: 2M/118M
[INFO]
------------------------------------------------------------------------

-- 
Federico Matarrita A.
Tel. +506 8847.6518
E-mail: feder...@usematics.com
Ingeniero de Software
Usematics S.A.
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
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

Reply via email to