mirror of https://github.com/apache/maven.git
[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:
parent
2225bc7bbe
commit
19dec1eff6
|
@ -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 )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue