[
https://jira.codehaus.org/browse/MNG-3035?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul Benedict updated MNG-3035:
-------------------------------
Fix Version/s: (was: Issues to be reviewed for 3.x)
> 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: https://jira.codehaus.org/browse/MNG-3035
> Project: Maven
> Issue Type: Bug
> Components: Artifacts and Repositories
> Affects Versions: 2.0.5
> Reporter: Tom Parker
> Priority: Minor
> 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 was sent by Atlassian JIRA
(v6.1.6#6162)