You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Reinhard Nägele <re...@mgm-tp.com> on 2009/04/15 11:43:13 UTC

Weird problem downloading snapshots with Nexus

Hello,

This morning, I updated our Nexus version from 1.3.1.1 to 1.3.2. After 
that my builds did not run because they failed to download snapshot 
dependencies from a hosted repository. As yesterday everything was still 
fine, I suspected a regression in Nexus, went back to 1.3.1.1, but the 
problem persisted.

Investigating further, I noticed that Maven tried to download unique 
snapshots versions instead of the timestamped ones. This explained why 
the snapshots would not be found. So, something must have messed up my 
local repository. Next, I tried "mvn dependency:purge-local-repository" 
but that did not work either because it would also try to download the 
unique version. So, I eventually purged my local repo manually, and the 
problem was gone.

I'd appreciate any insight into what was going on here. Did I do 
anything wrong? Did metadata get messed up somehow?

Thanks,
Reinhard


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Weird problem downloading snapshots with Nexus

Posted by Brian Fox <br...@infinity.nu>.
Whenever you see Maven making requests for -SNAPSHOT (and you don't have 
it configured with useUnique = false) it always  means that the 
maven-metadata.xml file for that snapshot is wrong or couldn't be found. 
It's hard to say why that could have happened, but this often happens if 
you do a build offline (or while the repo is offline) and then Maven 
remembers this missing data.

Reinhard Nägele wrote:
> Hello,
>
> This morning, I updated our Nexus version from 1.3.1.1 to 1.3.2. After 
> that my builds did not run because they failed to download snapshot 
> dependencies from a hosted repository. As yesterday everything was 
> still fine, I suspected a regression in Nexus, went back to 1.3.1.1, 
> but the problem persisted.
>
> Investigating further, I noticed that Maven tried to download unique 
> snapshots versions instead of the timestamped ones. This explained why 
> the snapshots would not be found. So, something must have messed up my 
> local repository. Next, I tried "mvn 
> dependency:purge-local-repository" but that did not work either 
> because it would also try to download the unique version. So, I 
> eventually purged my local repo manually, and the problem was gone.
>
> I'd appreciate any insight into what was going on here. Did I do 
> anything wrong? Did metadata get messed up somehow?
>
> Thanks,
> Reinhard
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org