Re: build failure

From: Demetrios Kyriakis (demetrios.kyriaki..mail.com)
Date: Tue May 05 2009 - 11:22:04 EDT

  • Next message: Andrus Adamchik: "Re: build failure"

    >> Try this to ensure everything is built fresh and nothing is downloaded
    >> from the repo:
    >>
    >> rm -rf ~/.m2/repository/org/apache/cayenne/
    > I deleted manually everything from M2 repo directory (I'm using windows)
    Typo from my side:
    I deleted manually everything from *that* M2 repo directory (i.e. the
    equivalent directory on windows
    c:\Users\$username\.m2\repository\org\apache\cayenne
    )

    >> mvn -o clean install
    > Off line mode gives a similar error :(.
    > (I also used -Dmaven.test.skip=true since without this the
    > build breaks always in the tests - ever since Cayenne was mavenized)
    >
    > ===================================================================================
    >
    > ....
    > [INFO]------------------------------------------------------------------------
    >
    > [ERROR] BUILD ERROR
    > [INFO]
    > ------------------------------------------------------------------------
    > [INFO] Failed to resolve artifact.
    >
    > Missing:
    > ----------
    > 1) org.apache.cayenne:cayenne-tools:jar:3.0-SNAPSHOT
    >
    > Try downloading the file manually from the project website.
    >
    > Then, install it using the command:
    > mvn install:install-file -DgroupId=org.apache.cayenne
    > -DartifactId=cayenne-tools -Dversion=3.0-SNAPSHOT -Dpackagin
    > g=jar -Dfile=/path/to/file
    >
    > Alternatively, if you host your own repository you can deploy the file
    > there:
    > mvn deploy:deploy-file -DgroupId=org.apache.cayenne
    > -DartifactId=cayenne-tools -Dversion=3.0-SNAPSHOT -Dpackaging=
    > jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
    >
    > Path to dependency:
    > 1) org.apache.cayenne:cayenne-modeler:jar:3.0-SNAPSHOT
    > 2) org.apache.cayenne:cayenne-tools:jar:3.0-SNAPSHOT
    >
    > ----------
    > 1 required artifact is missing.
    >
    > for artifact:
    > org.apache.cayenne:cayenne-modeler:jar:3.0-SNAPSHOT
    >
    > from the specified remote repositories:
    > central (http://repo1.maven.org/maven2),
    > apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository/)
    >
    >
    >
    > NOTE: Maven is executing in offline mode. Any artifacts not already in
    > your local
    > repository will be inaccessible.
    >
    >
    > [INFO]
    > ------------------------------------------------------------------------
    > [INFO] For more information, run Maven with the -e switch
    > [INFO]
    > ------------------------------------------------------------------------
    > [INFO] Total time: 1 minute 33 seconds
    > [INFO] Finished at: Tue May 05 17:07:38 CEST 2009
    > [INFO] Final Memory: 36M/63M
    > [INFO]
    > ------------------------------------------------------------------------
    >
    >



    This archive was generated by hypermail 2.0.0 : Tue May 05 2009 - 11:23:01 EDT