PR: MNG-613

revert previous flushing of metadata as not all metadata is attached during transformation
instead fix the problem of setting of local copy directly

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@280349 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-09-12 14:58:31 +00:00
parent 1398c7c6af
commit 935dcdf0f7
3 changed files with 11 additions and 2 deletions

View File

@ -76,7 +76,9 @@ public class DefaultArtifactDeployer
ArtifactMetadata metadata = (ArtifactMetadata) i.next();
repositoryMetadataManager.deploy( metadata, localRepository, deploymentRepository );
}
artifact.getMetadataList().clear();
// TODO: would like to flush this, but the plugin metadata is added in advance, not as an install/deploy transformation
// This would avoid the need to merge and clear out the state during deployment
// artifact.getMetadataList().clear();
}
catch ( TransferFailedException e )
{

View File

@ -75,7 +75,9 @@ public class DefaultArtifactInstaller
ArtifactMetadata metadata = (ArtifactMetadata) i.next();
repositoryMetadataManager.install( metadata, localRepository );
}
artifact.getMetadataList().clear();
// TODO: would like to flush this, but the plugin metadata is added in advance, not as an install/deploy transformation
// This would avoid the need to merge and clear out the state during deployment
// artifact.getMetadataList().clear();
}
catch ( IOException e )
{

View File

@ -140,6 +140,11 @@
s.setBuildNumber( snapshot.getBuildNumber() );
changed = true;
}
if ( s.isLocalCopy() )
{
s.setLocalCopy( false );
changed = true;
}
}
}
}