On 7/17/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
I've a weird (for me) build problem. There's an updated snapshot version on the repository, but maven is not pulling that down for the build, but rather uses my local version. Under which conditions can this happen, and how do I resolve it (except for maybe trashing the whole .m2/repository).
Without knowing when you executed builds and when the snapshot was deployed, it's hard to say exactly what's happening. My guess is that the snapshot was not there the first time you built today, and the default repository update policy of "once per day" is in effect. Try adding -U to the command line and see if it downloads. If that doesn't work, deleting the directory tree from your local repo certainly should. (You don't have to delete the entire thing.) Before you do that, can you watch network traffic for a build and see if Maven is really making calls out to the repositories when it complains that the metadata is missing? ISTR complaints that Maven would download a snapshot from a repo even when there is a newer snapshot locally, (which is the reverse of your situation,) so keep an eye on that as well. -- Wendy --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
