You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benoit Guerout (JIRA)" <ji...@codehaus.org> on 2007/11/22 16:08:57 UTC

[jira] Commented: (MNG-3035) Maven caches missing snapshot dependencies, so further builds fail without checking the repo until the cache expires or -U is included to flush the cache

    [ http://jira.codehaus.org/browse/MNG-3035?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_114579 ] 

Benoit Guerout commented on MNG-3035:
-------------------------------------

You haven't define your distribution Management repository as a repository in <repositories>.

Suppose you've got it in your settings.xml

I've just tested your script in on windows, all work fine, Bob is very happy lol

However, i was looking for an issue like this one because I encounter  Snapshot dependencies resolutions like you describe :

Sometimes, Maven is not able to retrieve new snapshot build from shared remote repository, i'm trying to investigate this point

> Maven caches missing snapshot dependencies, so further builds fail without checking the repo until the cache expires or -U is included to flush the cache
> ---------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MNG-3035
>                 URL: http://jira.codehaus.org/browse/MNG-3035
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 2.0.5
>            Reporter: Tom Parker
>            Priority: Minor
>             Fix For: Reviewed Pending Version Assignment
>
>         Attachments: MNG-3035.zip
>
>
> The problem is caused by a slightly obscure sequence, in this example, I use two projects, Server & Common. Server depends on Common:
> Alice updates Server to depend on Common-1.2-SNAPSHOT instead of 1.1-SNAPSHOT and commits that change.
> Bob syncs that change and attempts a build of Server, maven checks for Common-1.2-SNAPSHOT in the local repo, finds it missing and checks the global repo, where it is also missing. Maven records this information in a cache and fails the build.
> Alice deploys Common-1.2-SNAPSHOT to the global repo.
> Bob attempts to build Server again, maven checks it's cached information and finds that Common-1.2-SNAPSHOT wasn't in the global repo last time, so fails the build.
> Maven should not fail the build due to missing dependencies simply because the cache says the dependency was missing last time. It should check the configured repos before failing.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira