Re: Can't build Cayenne from trunk [ERROR] BUILD ERROR

From: Evgeny Ryabitskiy (evgeny.ryabitski..mail.com)
Date: Mon Nov 23 2009 - 05:06:53 EST

  • Next message: Andrey Razumovsky: "Re: Can't build Cayenne from trunk [ERROR] BUILD ERROR"

    So... I got Internet (promised to kill someone before)...

    Still nothing better... It's trying to load it from object style but fails.

    [INFO] ------------------------------------------------------------------------
    [INFO] Building Cayenne
    [INFO] task-segment: [clean, install]
    [INFO] ------------------------------------------------------------------------
    Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.5-SNAPSHOT/maven-surefire-plugin-2.5-SNAPSHOT.pom
    [INFO] Unable to find resource
    'org.apache.maven.plugins:maven-surefire-plugin:pom:2.5-SNAPSHOT' in
    repository Maven Central Repo (http://repo1.maven.org/maven2)
    Downloading: http://objectstyle.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.5-SNAPSHOT/maven-surefire-plugin-2.5-SNAPSHOT.pom
    [INFO] Unable to find resource
    'org.apache.maven.plugins:maven-surefire-plugin:pom:2.5-SNAPSHOT' in
    repository objectstyle-snapshots (http://objectstyle.org/maven2)
    Downloading: http://people.apache.org/repo/m2-snapshot-repository//org/apache/maven/plugins/maven-surefire-plugin/2.5-SNAPSHOT/maven-surefire-plugin-2.5-SNAPSHOT.pom
    [INFO] Unable to find resource
    'org.apache.maven.plugins:maven-surefire-plugin:pom:2.5-SNAPSHOT' in
    repository apache-snapshots
    (http://people.apache.org/repo/m2-snapshot-repository/)
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] Failed to resolve artifact.

    GroupId: org.apache.maven.plugins
    ArtifactId: maven-surefire-plugin
    Version: 2.5-SNAPSHOT

    Reason: Unable to download the artifact from any repository

      org.apache.maven.plugins:maven-surefire-plugin:pom:2.5-SNAPSHOT

    from the specified remote repositories:
      central (http://repo1.maven.org/maven2),
      apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository/),
      Maven Central Repo (http://repo1.maven.org/maven2),
      objectstyle-snapshots (http://objectstyle.org/maven2)

    [INFO] ------------------------------------------------------------------------
    [INFO] For more information, run Maven with the -e switch
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 2 seconds
    [INFO] Finished at: Mon Nov 23 13:01:03 MSK 2009
    [INFO] Final Memory: 4M/7M
    [INFO] ------------------------------------------------------------------------

    23 ฮฯัยาั 2009 ว. 12:40 ะฯฬฺุฯืมิลฬุ ๒ัยษรหษส ๅืวลฮษส
    <eryabitski..iasoft.ru> ฮมะษำมฬ:
    >
    >> So the only way is intall those artifacts manually in your repo.
    >
    > I know...
    >
    > Sorry maybe I confused you. I can't Build it now because I am at work. But yesterday (when I post first letter in this chain) I was building Cayenne at home. Not successful.... Even I don't have Internet limits at home...
    >
    > Evgeny.
    >
    >
    > This Surefire-snapshot is one of official maven team snapshots. We've taken
    > it to Objectstyle repo exactly for excluding dependencies from Maven
    > snapshots repo. Changes made is this snapshot are required for building
    > Cayenne with Hudson, so we're waiting till official surefire-2.5 is
    > released, but currently it is not.
    > If you don't have access to objectstyle.org, you will not be able to resolve
    > other dependencies such as ashwood, as well. So the only way is intall those
    > artifacts manually in your repo.
    >
    > 23 ฮฯัยาั 2009 ว. 11:44 ะฯฬฺุฯืมิลฬุ ๒ัยษรหษส ๅืวลฮษส <
    > eryabitski..iasoft.ru> ฮมะษำมฬ:
    >
    >> Apache Maven 2.2.1 (r801777; 2009-08-06 23:16:01+0400)
    >> Java version: 1.5.0_12
    >> Java home: C:\Program Files\Java\jdk1.5.0_12\jre
    >> Default locale: ru_RU, platform encoding: Cp1251
    >> OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
    >>
    >> Are you using some repo manager? Archiva/Nexus like?
    >>
    >> I checkout 2 times on 2 different workstations. Can't check it right now
    >> couse we have very limitted access to Web at work :(
    >> maven.org and apache.org are in white list but objectstyle is not....
    >> From my expirience there are lot's of headake with snapshots...
    >> Some times it's better to make own realise with timestamp name then use
    >> SNAPSHOTS.
    >>
    >> I know how to fix it manually but the question is: if it's buildable for
    >> any new user/developer?
    >>
    >> Evgeny.
    >>
    >>
    >> $ mvn -v
    >> Apache Maven 2.1.0 (r755702; 2009-03-18 21:10:27+0200)
    >> Java version: 1.5.0_20
    >> Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/
    >> Home
    >> Default locale: en_US, platform encoding: MacRoman
    >> OS name: "mac os x" version: "10.5.8" arch: "i386" Family: "unix"
    >>
    >> $ rm -rf ~/.m2/repository-cayenne/org/apache/maven/
    >>
    >> $ mvn clean install
    >>
    >> This worked for me. Maven grabbed surefire SNAPSHOTs from
    >> objectstyle.org
    >>
    >> Andrus
    >>
    >> On Nov 23, 2009, at 7:15 AM, Andrus Adamchik wrote:
    >>
    >> > Strange. I deployed it in the objectstyle.org repo per commit
    >> > below... Will need to try it with a clean repo I guess...
    >> >
    >> > Andrus
    >> >
    >> > commit f6446a627ace11ba97b3720080f100984739d38e
    >> > Author: aadamchik <aadamchi..3f79535-47bb-0310-9956-ffa450edef68>
    >> > Date: š Fri Oct 16 20:27:46 2009 +0000
    >> >
    >> > š šfixing pom
    >> >
    >> > š š* adding obnectstyle.org repo for plugin SNAPSHOTs - needed
    >> > temporarily for surefire 2.5-SNAPSHOT; should get rid of it once
    >> > that b
    >> >
    >> > š šgit-svn-id:
    >> https://svn.apache.org/repos/asf/cayenne/main/trun..26070
    >> > š13f79535-47bb-0310-9956-ffa450edef68
    >> >
    >> > diff --git a/pom.xml b/pom.xml
    >> > index b487015..0a98f32 100644
    >> > --- a/pom.xml
    >> > +++ b/pom.xml
    >> >.. -546,6 +546,20 @@
    >> > š š š š š š š š š š š š š š š š<enabled>true</enabled>
    >> > š š š š š š š š š š š š</releases>
    >> > š š š š š š š š</pluginRepository>
    >> > + š š š š š š š <pluginRepository>
    >> > + š š š š š š š š š š š š š š š š š š š <id>objectstyle-snapshots</id>
    >> > + š š š š š š š š š š š š š š š š š š š <name>ObjectStyle Snapshots
    >> > Repository</name>
    >> > + š š š š š š š š š š š š š š š š š š š <url>
    >> http://objectstyle.org/maven2
    >> > </url>
    >> > + š š š š š š š š š š š š š š š š š š š <layout>default</layout>
    >> > + š š š š š š š š š š š š š š š š š š š <snapshots>
    >> > + š š š š š š š š š š š š š š š š š š š š š š š <enabled>true</
    >> > enabled>
    >> > +
    >> > <updatePolicy>weekly</updatePolicy>
    >> > +
    >> > <checksumPolicy>ignore</checksumPolicy>
    >> > + š š š š š š š š š š š š š š š š š š š </snapshots>
    >> > + š š š š š š š š š š š š š š š š š š š <releases>
    >> > + š š š š š š š š š š š š š š š š š š š š š š š <enabled>false</
    >> > enabled>
    >> > + š š š š š š š š š š š š š š š š š š š </releases>
    >> > + š š š š š š š š š š š š š š š </pluginRepository>
    >> > š š š š</pluginRepositories>
    >> >
    >> >
    >> > On Nov 23, 2009, at 2:01 AM, Evgeny Ryabitskiy wrote:
    >> >
    >> >> this SNAPSHOT for surefire is not going to be downloaded :)
    >> >> Have you try it with empty Local Repo?
    >> >>
    >> >> 2009/11/23 Evgeny Ryabitskiy <evgeny.ryabitski..mail.com>:
    >> >>> [INFO]
    >> >>>
    >> ------------------------------------------------------------------------
    >> >>> [INFO] Building Cayenne
    >> >>> [INFO] š štask-segment: [clean, install]
    >> >>> [INFO]
    >> >>>
    >> ------------------------------------------------------------------------
    >> >>> Downloading:
    >> http://repo1.maven.org/maven2/org/apache/maven/surefire/surefire/2.5-SNAPSHOT/surefire-2.5-SNAPSHOT.pom
    >> >>> [INFO] Unable to find resource
    >> >>> 'org.apache.maven.surefire:surefire:pom:2.5-SNAPSHOT' in repository
    >> >>> Maven Central Repo (h
    >> >>> ttp://repo1.maven.org/maven2)
    >> >>> Downloading:
    >> http://objectstyle.org/maven2/org/apache/maven/surefire/surefire/2.5-SNAPSHOT/surefire-2.5-SNAPSHOT.pom
    >> >>> [INFO] Unable to find resource
    >> >>> 'org.apache.maven.surefire:surefire:pom:2.5-SNAPSHOT' in repository
    >> >>> objectstyle-snapshots
    >> >>> (http://objectstyle.org/maven2)
    >> >>> Downloading:
    >> http://people.apache.org/repo/m2-snapshot-repository//org/apache/maven/surefire/surefire/2.5-SNAPSHOT/suref
    >> >>> ire-2.5-SNAPSHOT.pom
    >> >>> [INFO] Unable to find resource
    >> >>> 'org.apache.maven.surefire:surefire:pom:2.5-SNAPSHOT' in repository
    >> >>> apache-snapshots (htt
    >> >>> p://people.apache.org/repo/m2-snapshot-repository/)
    >> >>> [INFO]
    >> >>>
    >> ------------------------------------------------------------------------
    >> >>> [ERROR] BUILD ERROR
    >> >>> [INFO]
    >> >>>
    >> ------------------------------------------------------------------------
    >> >>> [INFO] Error building POM (may not be this project's POM).
    >> >>>
    >> >>>
    >> >>> Project ID: org.apache.maven.plugins:maven-surefire-plugin:maven-
    >> >>> plugin:null
    >> >>>
    >> >>> Reason: Cannot find parent: org.apache.maven.surefire:surefire for
    >> >>> project: org.apache.maven.plugins:maven-surefire-plug
    >> >>> in:maven-plugin:null for project
    >> >>> org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:null
    >> >>>
    >> >>>
    >> >>> [INFO]
    >> >>>
    >> ------------------------------------------------------------------------
    >> >>> [INFO] For more information, run Maven with the -e switch
    >> >>> [INFO]
    >> >>>
    >> ------------------------------------------------------------------------
    >> >>> [INFO] Total time: 3 seconds
    >> >>> [INFO] Finished at: Mon Nov 23 00:21:40 MSK 2009
    >> >>> [INFO] Final Memory: 4M/254M
    >> >>> [INFO]
    >> >>>
    >> ------------------------------------------------------------------------
    >> >>>
    >> >>
    >> >
    >> >
    >>
    >>
    >
    >
    > --
    > Andrey
    >



    This archive was generated by hypermail 2.0.0 : Mon Nov 23 2009 - 05:07:31 EST