Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-188

Bug in EJB example POM

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.0.1.GA
    • 1.0.GA
    • None
    • None

      The fix is to set the parent pom correctly in the WAR pom

      Bill:

      A JBoss teacher here - I'm trying to use the ejb example as a classroom lab; maven is reporting that the artifact can't be found. Any ideas?

      -david norwood

      Red Hatter since 12/1/08

      Trace:

      [INFO] Scanning for projects...

      Downloading: http://repo1.maven.org/maven2/org/jboss/resteasy/resteasy-jaxrs-all/1.0.0.GA/resteasy-jaxrs-all-1.0.0.GA.pom

      [INFO] ------------------------------------------------------------------------

      [ERROR] FATAL ERROR

      [INFO] ------------------------------------------------------------------------

      [INFO] Failed to resolve artifact.

      GroupId: org.jboss.resteasy

      ArtifactId: resteasy-jaxrs-all

      Version: 1.0.0.GA

      Reason: Unable to download the artifact from any repository

      org.jboss.resteasy:resteasy-jaxrs-all:pom:1.0.0.GA

      from the specified remote repositories:

      central (http://repo1.maven.org/maven2)

      [INFO] ------------------------------------------------------------------------

      [INFO] Trace

      org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.jboss.resteasy:resteasy-jaxrs-all for project: null:ejb-integration-war:war:null for project null:ejb-integration-war:war:null

      at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)

      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:292)

      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)

      at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)

      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.resteasy:resteasy-jaxrs-all for project: null:ejb-integration-war:war:null for project null:ejb-integration-war:war:null

      at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1370)

      at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:821)

      at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:506)

      at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:198)

      at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:583)

      at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461)

      at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:534)

      at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)

      ... 11 more

      Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.jboss.resteasy:resteasy-jaxrs-all' not found in repository: Unable to download the artifact from any repository

      org.jboss.resteasy:resteasy-jaxrs-all:pom:1.0.0.GA

      from the specified remote repositories:

      central (http://repo1.maven.org/maven2)

      for project org.jboss.resteasy:resteasy-jaxrs-all

      at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:603)

      at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1366)

      ... 18 more

      Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any repository

      org.jboss.resteasy:resteasy-jaxrs-all:pom:1.0.0.GA

      from the specified remote repositories:

      central (http://repo1.maven.org/maven2)

      at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:212)

      at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:74)

      at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:556)

      ... 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:331)

      at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:200)

      ... 21 more

      [INFO] ------------------------------------------------------------------------

      [INFO] Total time: < 1 second

      [INFO] Finished at: Thu Jan 22 14:40:04 EST 2009

      [INFO] Final Memory: 1M/2M

      [INFO] ------------------------------------------------------------------------

              patriot1burke@gmail.com Bill Burke (Inactive)
              patriot1burke@gmail.com Bill Burke (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: