[MNG-4755] Version ranges cannot be resolved against mirror if a local artifact is present

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@987462 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2010-08-20 11:47:49 +00:00
parent 2225bc7bbe
commit 19dec1eff6
1 changed files with 5 additions and 1 deletions

View File

@ -113,7 +113,11 @@ public class DefaultRepositoryMetadataManager
if ( !request.isOffline() )
{
Date localCopyLastModified = getLocalCopyLastModified( localRepository, metadata );
Date localCopyLastModified = null;
if ( metadata.getBaseVersion() != null )
{
localCopyLastModified = getLocalCopyLastModified( localRepository, metadata );
}
for ( ArtifactRepository repository : remoteRepositories )
{