mirror of https://github.com/apache/maven.git
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:
parent
1398c7c6af
commit
935dcdf0f7
|
@ -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 )
|
||||
{
|
||||
|
|
|
@ -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 )
|
||||
{
|
||||
|
|
|
@ -140,6 +140,11 @@
|
|||
s.setBuildNumber( snapshot.getBuildNumber() );
|
||||
changed = true;
|
||||
}
|
||||
if ( s.isLocalCopy() )
|
||||
{
|
||||
s.setLocalCopy( false );
|
||||
changed = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue