flush metadata, ensuring local copy only set on install

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@280340 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-09-12 13:45:11 +00:00
parent 8948d497ce
commit a4e6dffe49
2 changed files with 2 additions and 0 deletions

View File

@ -76,6 +76,7 @@ public class DefaultArtifactDeployer
ArtifactMetadata metadata = (ArtifactMetadata) i.next();
repositoryMetadataManager.deploy( metadata, localRepository, deploymentRepository );
}
artifact.getMetadataList().clear();
}
catch ( TransferFailedException e )
{

View File

@ -75,6 +75,7 @@ public class DefaultArtifactInstaller
ArtifactMetadata metadata = (ArtifactMetadata) i.next();
repositoryMetadataManager.install( metadata, localRepository );
}
artifact.getMetadataList().clear();
}
catch ( IOException e )
{