use the correct repository for finding the original snapshot data

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@240414 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-08-27 12:48:12 +00:00
parent 0481c45fc9
commit 14f4c980c1
1 changed files with 5 additions and 3 deletions

View File

@ -38,7 +38,9 @@ public class DefaultArtifactDeployer
private ArtifactTransformationManager transformationManager;
/** @deprecated we want to use the artifact method only, and ensure artifact.file is set correctly. */
/**
* @deprecated we want to use the artifact method only, and ensure artifact.file is set correctly.
*/
public void deploy( String basedir, String finalName, Artifact artifact, ArtifactRepository deploymentRepository,
ArtifactRepository localRepository )
throws ArtifactDeploymentException
@ -54,7 +56,7 @@ public class DefaultArtifactDeployer
{
try
{
transformationManager.transformForDeployment( artifact, localRepository );
transformationManager.transformForDeployment( artifact, deploymentRepository );
// Copy the original file to the new one if it was transformed
File artifactFile = new File( localRepository.getBasedir(), localRepository.pathOf( artifact ) );