0 Replies Latest reply on Aug 14, 2009 12:08 AM by philip puthenvila

    Hotel booking demo not working

    philip puthenvila Newbie

      Hi
      I am trying to run he hotel booking demo as per the tutorial by Wesley Hales . I have checkout the project but I could not run the mvn install command. I am getting this error
      C:\JBossSeamPortalRun\booking>mvn install
      [INFO] Scanning for projects...
      Downloading: http://repo1.maven.org/maven2/org/jboss/portletbridge/examples/2.0.
      0.ALPHA/examples-2.0.0.ALPHA.pom
      [INFO] Unable to find resource 'org.jboss.portletbridge:examples:pom:2.0.0.ALPHA
      ' in repository central (http://repo1.maven.org/maven2)
      [INFO] ------------------------------------------------------------------------
      [ERROR] FATAL ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Error building POM (may not be this project's POM).


      Project ID: org.jboss.portletbridge.examples.seam.booking:seamBookingDemo:pom:2.
      0.0.ALPHA

      Reason: Cannot find parent: org.jboss.portletbridge:examples for project: org.jb
      oss.portletbridge.examples.seam.booking:seamBookingDemo:pom:2.0.0.ALPHA for proj
      ect org.jboss.portletbridge.examples.seam.booking:seamBookingDemo:pom:2.0.0.ALPH
      A


      [INFO] ------------------------------------------------------------------------
      [INFO] Trace
      org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.jboss.
      portletbridge:examples for project: org.jboss.portletbridge.examples.seam.bookin
      g:seamBookingDemo:pom:2.0.0.ALPHA for project org.jboss.portletbridge.examples.s
      eam.booking:seamBookingDemo:pom:2.0.0.ALPHA
      at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:432)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:300)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
      at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:4
      1)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.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.jboss.portletbridge:examples for project: org.jboss.portletbridge.examples
      .seam.booking:seamBookingDemo:pom:2.0.0.ALPHA for project org.jboss.portletbridg
      e.examples.seam.booking:seamBookingDemo:pom:2.0.0.ALPHA
      at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
      efaultMavenProjectBuilder.java:1396)
      at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(Def
      aultMavenProjectBuilder.java:823)
      at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi
      leInternal(DefaultMavenProjectBuilder.java:508)
      at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave
      nProjectBuilder.java:200)
      at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:632)
      at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:515)
      at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:419)
      ... 12 more
      Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.jboss.por
      tletbridge:examples' not found in repository: Unable to download the artifact fr
      om any repository

      org.jboss.portletbridge:examples:pom:2.0.0.ALPHA

      from the specified remote repositories:
      central (http://repo1.maven.org/maven2)

      for project org.jboss.portletbridge:examples
      at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
      sitory(DefaultMavenProjectBuilder.java:605)
      at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
      efaultMavenProjectBuilder.java:1392)
      ... 18 more
      Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable
      to download the artifact from any repository

      org.jboss.portletbridge:examples:pom:2.0.0.ALPHA

      from the specified remote repositories:
      central (http://repo1.maven.org/maven2)


      at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
      faultArtifactResolver.java:228)
      at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
      faultArtifactResolver.java:90)
      at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
      sitory(DefaultMavenProjectBuilder.java:558)
      ... 19 more
      Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to downl
      oad the artifact from any repository
      at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(Def
      aultWagonManager.java:349)
      at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
      faultArtifactResolver.java:216)
      ... 21 more
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 1 second
      [INFO] Finished at: Fri Aug 14 10:37:54 EST 2009
      [INFO] Final Memory: 1M/4M
      [INFO] ------------------------------------------------------------------------

      first of all I am not familiar with maven,
      Please help
      Philip