Try setting the updatePolicy for your repository to "always". Default is 24 hours.
> -----Original Message----- > From: mbo [mailto:[email protected]] > Sent: Friday, May 27, 2011 11:22 AM > To: [email protected] > Subject: Missing artifact in local repository > > Hello, > > I'm using maven with eclipse and archiva. I'm facing the following > problem: > > Maven cannot resolve a dependency, because it is not in archiva. I get > an > error message like: > 27.05.11 15:23:14 MESZ: Missing artifact > org.hibernate:hibernate-core:jar:3.3.0.SP1:compile > > Then I add the artifact to archiva and call "Update Dependencies" from > the > Maven menue in eclipse. I again receive the error above. > > Only when I delete my local repository at /Users/mbo/.m2/repository and > then > call "Update Dependencies" again maven will also download the recently > added > artifact from archiva and put it in the local repository. > > The problem occurs with maven-2.2.0 maven-2.2.1 and maven-3.0.2. Is > this a > Bug or is there a setting to tell maven to always look for changes in > archiva when calling "Update Dependencies"? > > Thanks and Regards > > Markus > > > -- > View this message in context: http://maven.40175.n5.nabble.com/Missing- > artifact-in-local-repository-tp4432380p4432380.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
