mirror of https://github.com/apache/maven.git
apply changes from tag maven 2.0 rev 326649
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@326654 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d25845da43
commit
99ed67e747
|
@ -78,7 +78,7 @@ public class DefaultRepositoryMetadataManager
|
|||
File file = new File( localRepository.getBasedir(),
|
||||
localRepository.pathOfLocalRepositoryMetadata( metadata, repository ) );
|
||||
|
||||
boolean checkForUpdates = policy.checkOutOfDate( new Date( file.lastModified() ) );
|
||||
boolean checkForUpdates = policy.checkOutOfDate( new Date( file.lastModified() ) ) || !file.exists();
|
||||
|
||||
if ( checkForUpdates )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue