o Avoided corruption of local repository when installing a snapshot artifact that was already deployed and as such has a timestamped version, this happens in the wild when using invoker:install during a build that deploys its output

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1151426 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2011-07-27 10:56:26 +00:00
parent e877a035d7
commit 8018e97eb0
1 changed files with 2 additions and 2 deletions

View File

@ -112,12 +112,12 @@ public class LegacyLocalRepositoryManager
public String getPathForLocalArtifact( Artifact artifact )
{
return delegate.pathOf( RepositoryUtils.toArtifact( artifact ) );
return delegate.pathOf( RepositoryUtils.toArtifact( artifact.setVersion( artifact.getBaseVersion() ) ) );
}
public String getPathForRemoteArtifact( Artifact artifact, RemoteRepository repository, String context )
{
return getPathForLocalArtifact( artifact );
return delegate.pathOf( RepositoryUtils.toArtifact( artifact ) );
}
public String getPathForLocalMetadata( Metadata metadata )