Can't build cayenne examples :(.

From: Joseph Schmidt (joseph_schmidt7..ahoo.com)
Date: Wed Apr 08 2009 - 05:53:11 EDT

  • Next message: Andrus Adamchik: "Re: Can't build cayenne examples :(."

    Hi,

    Trying to build the cayenne examples from:
    http://svn.apache.org/repos/asf/cayenne/examples/trunk/
    I get "fatal" error from maven :( (see the end of this message).

    If it were ANT I could quickly fix the build.xml to make it work, but these maven error messages are killing me :(.

    I did a clean checkout of those examples from the above URL, maven works with other projects, so I supposed it should simply work here too.

    Or am I doing something totally wrong? (I could find no instructions how to do it otherwise :( ).

    thanks,
    Joseph.

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

    Project ID: org.apache.cayenne.examples:examples-parent:pom:null

    Reason: Cannot find parent: org.apache.cayenne:cayenne-parent for project: org.apache.cayenne.examples:examples-parent:p
    om:null for project org.apache.cayenne.examples:examples-parent:pom:null

    [INFO] ------------------------------------------------------------------------
    [INFO] Trace
    org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.apache.cayenne:cayenne-parent for project: org
    ..apache.cayenne.examples:examples-parent:pom:null for project org.apache.cayenne.examples:examples-parent:pom: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:301)
            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.apache.cayenne:cayenne-parent for
    project: org.apache.cayenne.examples:examples-parent:pom:null for project org.apache.cayenne.examples:examples-parent:po
    m:null
            at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1369)
            at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:820)
            at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.ja
    va:505)
            at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:197)
            at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:583)
            at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461)
            at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
            ... 11 more
    Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.apache.cayenne:cayenne-parent' not found in repos
    itory: Unable to download the artifact from any repository

      org.apache.cayenne:cayenne-parent:pom:3.0-incubating-SNAPSHOT

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

     for project org.apache.cayenne:cayenne-parent
            at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:6
    02)
            at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1365)
            ... 17 more
    Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any reposi
    tory

      org.apache.cayenne:cayenne-parent:pom:3.0-incubating-SNAPSHOT

    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:5
    55)
            ... 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:332)
            at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:200)
            ... 20 more
    [INFO] ------------------------------------------------------------------------

          



    This archive was generated by hypermail 2.0.0 : Wed Apr 08 2009 - 05:53:49 EDT