maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bentm...@apache.org
Subject svn commit: r987462 - /maven/maven-3/trunk/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/DefaultRepositoryMetadataManager.java
Date Fri, 20 Aug 2010 11:47:49 GMT
Author: bentmann
Date: Fri Aug 20 11:47:49 2010
New Revision: 987462

URL: http://svn.apache.org/viewvc?rev=987462&view=rev
Log:
[MNG-4755] Version ranges cannot be resolved against mirror if a local artifact is present

Modified:
    maven/maven-3/trunk/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/DefaultRepositoryMetadataManager.java

Modified: maven/maven-3/trunk/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/DefaultRepositoryMetadataManager.java
URL: http://svn.apache.org/viewvc/maven/maven-3/trunk/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/DefaultRepositoryMetadataManager.java?rev=987462&r1=987461&r2=987462&view=diff
==============================================================================
--- maven/maven-3/trunk/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/DefaultRepositoryMetadataManager.java
(original)
+++ maven/maven-3/trunk/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/DefaultRepositoryMetadataManager.java
Fri Aug 20 11:47:49 2010
@@ -113,7 +113,11 @@ public class DefaultRepositoryMetadataMa
 
         if ( !request.isOffline() )
         {
-            Date localCopyLastModified = getLocalCopyLastModified( localRepository, metadata
);
+            Date localCopyLastModified = null;
+            if ( metadata.getBaseVersion() != null )
+            {
+                localCopyLastModified = getLocalCopyLastModified( localRepository, metadata
);
+            }
 
             for ( ArtifactRepository repository : remoteRepositories )
             {



Mime
View raw message