Try this to ensure everything is built fresh and nothing is downloaded
from the repo:
rm -rf ~/.m2/repository/org/apache/cayenne/
mvn -o clean install
Andrus
On May 5, 2009, at 10:46 AM, Demetrios Kyriakis wrote:
>> You probably need "mvn clean install" on the first build after
>> cleaning the repo.
> That is useless for me :(.
> I still can't make it (even skipping tests). I'm getting the output
> from the end of this post (not sure why it's trying to download it
> from Apache)
>
>> I just did cleanup on my machine and "install" works.
> http://www.codinghorror.com/blog/archives/000818.html
> (I guess this is one of the great maven "features").
>
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
> ....
> [INFO] snapshot org.apache.cayenne:cayenne-tools:3.0-SNAPSHOT:
> checking for updates from apache-snapshots
> Downloading: http://people.apache.org/repo/m2-snapshot-repository//org/apache/cayenne/cayenne-tools/3.0-SNAPSHOT/cayenne
> -tools-3.0-SNAPSHOT.pom
> [INFO] Unable to find resource 'org.apache.cayenne:cayenne-tools:pom:
> 3.0-SNAPSHOT' in repository apache-snapshots (http:
> //people.apache.org/repo/m2-snapshot-repository/)
> Downloading: http://people.apache.org/repo/m2-snapshot-repository//org/apache/cayenne/cayenne-tools/3.0-SNAPSHOT/cayenne
> -tools-3.0-SNAPSHOT.jar
> [INFO] Unable to find resource 'org.apache.cayenne:cayenne-tools:jar:
> 3.0-SNAPSHOT' in repository apache-snapshots (http:
> //people.apache.org/repo/m2-snapshot-repository/)
> [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/
> )
>
>
This archive was generated by hypermail 2.0.0 : Tue May 05 2009 - 10:59:07 EDT