mirror of https://github.com/apache/maven.git
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:
parent
e877a035d7
commit
8018e97eb0
|
@ -112,12 +112,12 @@ public class LegacyLocalRepositoryManager
|
||||||
|
|
||||||
public String getPathForLocalArtifact( Artifact artifact )
|
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 )
|
public String getPathForRemoteArtifact( Artifact artifact, RemoteRepository repository, String context )
|
||||||
{
|
{
|
||||||
return getPathForLocalArtifact( artifact );
|
return delegate.pathOf( RepositoryUtils.toArtifact( artifact ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getPathForLocalMetadata( Metadata metadata )
|
public String getPathForLocalMetadata( Metadata metadata )
|
||||||
|
|
Loading…
Reference in New Issue