2 Replies Latest reply on Jun 1, 2009 10:43 AM by Jamie Bisotti

    What do I have to do to build Envers?

    Jamie Bisotti Newbie

      I installed Maven2 (i.e. I unzipped the downloaded ZIP file)

      I pulled the code from http://anonsvn.jboss.org/repos/hibernate/core/branches/envers-hibernate-3.3

      I typed: mvn install and I see this:


      [INFO] Scanning for projects...
      [INFO] ------------------------------------------------------------------------
      [ERROR] FATAL ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Error building POM (may not be this project's POM).


      Project ID: org.jboss.envers:jboss-envers:jar:1.2.0-hibernate-3.3

      Reason: Cannot find parent: org.hibernate:hibernate-parent for project: org.jboss.envers:jboss-envers:jar:1.2.0-hibernate-3.3 for project org.jboss.envers:jboss-envers:jar:1.2.0-hibernate-3.3


      [INFO] ------------------------------------------------------------------------
      [INFO] Trace
      org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.hibernate:hibernate-parent for project: org.jboss.envers:jboss-envers:jar:1.2.0-hibernate-3.3 for project org.jboss.envers:jboss-envers:jar:1.2.0-hibernate-3.3
      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:356)
      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.hibernate:hibernate-parent for project: org.jboss.envers:jboss-envers:jar:1.2.0-hibernate-3.3 for project org.jboss.envers:jboss-envers:jar:1.2.0-hibernate-3.3
      at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1398)
      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:632)
      at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:515)
      at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:419)
      ... 11 more
      Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.hibernate
      :hibernate-parent' not found in repository: Unable to download the artifact from any repository

      org.hibernate:hibernate-parent:pom:3.5.0-SNAPSHOT

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

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

      org.hibernate:hibernate-parent:pom:3.5.0-SNAPSHOT

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


      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)
      ... 18 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(DefaultWagonManager.java:349)
      at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:216)
      ... 20 more


      Looks like the problem is that it cannot find this: org.hibernate:hibernate-parent:pom:3.5.0-SNAPSHOT. What do I have to do to remedy this situation?

      Thanks,
      Jamie