One more thing to check - Maven version, which may cause the different
behavior:
$ mvn -v
Apache Maven 2.1.0 (r755702; 2009-03-18 15:10:27-0400)
Java version: 1.5.0_16
Andrus
On May 5, 2009, at 11:12 AM, Demetrios Kyriakis wrote:
>> 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)
>
>> 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:42:49 EDT