1 Reply Latest reply on Nov 20, 2007 9:43 AM by Paul Gier

    bootstraping a local repository

    Scott Stark Master

      Whenever I setup a new box with a local repository, I have to download the jboss parent contents to be able to build. otherwise I see this error. Is there a settings.xml setting that will allow everything to be bootstrapped from the jboss repo?

      Macintosh:trunk starksm$ mvn install
      [INFO] Scanning for projects...
      Downloading: http://repo1.maven.org/maven2/org/jboss/jboss-parent/3/jboss-parent-3.pom
      [INFO] ------------------------------------------------------------------------
      [ERROR] FATAL ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Failed to resolve artifact.
      
      GroupId: org.jboss
      ArtifactId: jboss-parent
      Version: 3
      
      Reason: Unable to download the artifact from any repository
      
       org.jboss:jboss-parent:pom:3
      
      from the specified remote repositories:
       central (http://repo1.maven.org/maven2)
      
      
      [INFO] ------------------------------------------------------------------------
      [INFO] Trace
      org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.jboss:jboss-parent for project: org.jboss:jboss-metadata:jar:1.0.0-SNAPSHOT
       at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:290)
       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
       at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
       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:585)
       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.jboss:jboss-parent for project: org.jboss:jboss-metadata:jar:1.0.0-SNAPSHOT
       at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1264)
       at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:749)
       at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:479)
       at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:200)
       at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:537)
       at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:467)
       at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:364)
       ... 11 more
      Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.jboss:jboss-parent' not found in repository: Unable to download the artifact from any repository
      
       org.jboss:jboss-parent:pom:3
      
      from the specified remote repositories:
       central (http://repo1.maven.org/maven2)
      
       at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:573)
       at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1260)
       ... 17 more
      Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any repository
      
       org.jboss:jboss-parent:pom:3
      
      from the specified remote repositories:
       central (http://repo1.maven.org/maven2)
      
       at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:197)
       at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:73)
       at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:526)
       ... 18 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:324)
       at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:185)
       ... 20 more
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: < 1 second
      [INFO] Finished at: Mon Nov 19 18:17:27 PST 2007
      [INFO] Final Memory: 1M/2M
      [INFO] ------------------------------------------------------------------------
      Macintosh:trunk starksm$