mirror of
https://github.com/apache/maven.git
synced 2025-02-25 20:05:24 +00:00
[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 void resolve( RepositoryMetadata metadata, RepositoryRequest request )
|
||||
|
||||
if ( !request.isOffline() )
|
||||
{
|
||||
Date localCopyLastModified = getLocalCopyLastModified( localRepository, metadata );
|
||||
Date localCopyLastModified = null;
|
||||
if ( metadata.getBaseVersion() != null )
|
||||
{
|
||||
localCopyLastModified = getLocalCopyLastModified( localRepository, metadata );
|
||||
}
|
||||
|
||||
for ( ArtifactRepository repository : remoteRepositories )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user