3 Replies Latest reply on Jul 29, 2010 12:34 AM by Sarada Mohanty

    Problem in building JBoss AS

    Sarada Mohanty Newbie

      Hi

       

      I have a problem regarding building JBoss AS from source code(ie, from jboss-5.1.0.GA-src.tar.gz).

      I followed the instructions provided in JBoss 5.* documentation yet facing problem.

       

      Here is the error that is coming in my console:-

       

      ********************************************************************************************************************************************

      [openuser@localhost build]$ ant
      Buildfile: build.xml

       

      maven-init:
           [echo] Maven Home set to /home/openuser/JBoss_AS_Src/jboss-5.1.0.GA-src/tools/maven

       

      maven-install:
           [java] [INFO] Scanning for projects...
           [java] Downloading: http://repository.jboss.org/maven2/org/jboss/jboss-parent/4/jboss-parent-4.pom
           [java] Downloading: http://repo1.maven.org/maven2/org/jboss/jboss-parent/4/jboss-parent-4.pom
           [java] [INFO] ------------------------------------------------------------------------
           [java] [ERROR] FATAL ERROR
           [java] [INFO] ------------------------------------------------------------------------
           [java] [INFO] Error building POM (may not be this project's POM).


           [java] Project ID: org.jboss.jbossas:jboss-as-component-matrix:pom:5.1.0.GA

           [java] Reason: Cannot find parent: org.jboss:jboss-parent for project: org.jboss.jbossas:jboss-as-component-matrix:pom:5.1.0.GA for project org.jboss.jbossas:jboss-as-component-matrix:pom:5.1.0.GA

       


           [java] [INFO] ------------------------------------------------------------------------
           [java] [INFO] Trace
           [java] org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.jboss:jboss-parent for project: org.jboss.jbossas:jboss-as-component-matrix:pom:5.1.0.GA for project org.jboss.jbossas:jboss-as-component-matrix:pom:5.1.0.GA
           [java]     at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
           [java]     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:292)
           [java]     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
           [java]     at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
           [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
           [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           [java]     at java.lang.reflect.Method.invoke(Method.java:616)
           [java]     at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
           [java]     at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
           [java]     at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
           [java]     at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
           [java] Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find parent: org.jboss:jboss-parent for project: org.jboss.jbossas:jboss-as-component-matrix:pom:5.1.0.GA for project org.jboss.jbossas:jboss-as-component-matrix:pom:5.1.0.GA
           [java]     at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1370)
           [java]     at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1387)
           [java]     at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:821)
           [java]     at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:506)
           [java]     at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:198)
           [java]     at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:583)
           [java]     at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461)
           [java]     at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
           [java]     ... 11 more
           [java] Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.jboss:jboss-parent' not found in repository: Unable to download the artifact from any repository

       

           [java]   org.jboss:jboss-parent:pom:4

       

           [java] from the specified remote repositories:
           [java]   snapshots.jboss.org (http://snapshots.jboss.org/maven2),
           [java]   central (http://repo1.maven.org/maven2),
           [java]   repository.jboss.org (http://repository.jboss.org/maven2)
           [java]  for project org.jboss:jboss-parent
           [java]     at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:603)
           [java]     at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1366)
           [java]     ... 18 more
           [java] Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any repository

       

           [java]   org.jboss:jboss-parent:pom:4

       

           [java] from the specified remote repositories:
           [java]   snapshots.jboss.org (http://snapshots.jboss.org/maven2),
           [java]   central (http://repo1.maven.org/maven2),
           [java]   repository.jboss.org (http://repository.jboss.org/maven2)

       

           [java]     at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:212)
           [java]     at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:74)
           [java]     at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:556)
           [java]     ... 19 more
           [java] Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to download the artifact from any repository
           [java]     at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:331)
           [java]     at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:200)
           [java]     ... 21 more
           [java] [INFO] ------------------------------------------------------------------------
           [java] [INFO] Total time: 1 minute 32 seconds
           [java] [INFO] Finished at: Wed Jul 28 16:06:13 IST 2010
           [java] [INFO] Final Memory: 1M/10M
           [java] [INFO] ------------------------------------------------------------------------
           [java] Java Result: 1

       

      BUILD FAILED
      /home/openuser/JBoss_AS_Src/jboss-5.1.0.GA-src/build/build.xml:1084: Unable to build maven modules.  See maven output for details.

       

       

      ************************************************************************************************************************************************************************

       

       

      Please help me out with this error.

       

      Thanking you.....