diff --git a/maven-artifact/src/main/java/org/apache/maven/artifact/AbstractArtifactComponent.java b/maven-artifact/src/main/java/org/apache/maven/artifact/AbstractArtifactComponent.java index 7cbc7fe561..ca4b4d0551 100644 --- a/maven-artifact/src/main/java/org/apache/maven/artifact/AbstractArtifactComponent.java +++ b/maven-artifact/src/main/java/org/apache/maven/artifact/AbstractArtifactComponent.java @@ -52,7 +52,7 @@ public class AbstractArtifactComponent return remoteRepository.pathOf( artifact ); } - protected String getLocalRepositoryArtifactPath( ArtifactRepository localRepository, Artifact artifact ) + protected String getLocalRepositoryArtifactPath( Artifact artifact, ArtifactRepository localRepository ) throws ArtifactPathFormatException { for ( Iterator i = artifactTransformations.iterator(); i.hasNext(); ) diff --git a/maven-artifact/src/main/java/org/apache/maven/artifact/installer/DefaultArtifactInstaller.java b/maven-artifact/src/main/java/org/apache/maven/artifact/installer/DefaultArtifactInstaller.java index 9445f4e4df..d39d3a2123 100644 --- a/maven-artifact/src/main/java/org/apache/maven/artifact/installer/DefaultArtifactInstaller.java +++ b/maven-artifact/src/main/java/org/apache/maven/artifact/installer/DefaultArtifactInstaller.java @@ -52,7 +52,7 @@ public class DefaultArtifactInstaller { try { - artifact.setPath( getLocalRepositoryArtifactPath( localRepository, artifact ) ); + artifact.setPath( getLocalRepositoryArtifactPath( artifact, localRepository ) ); if ( !artifact.getFile().getParentFile().exists() ) { diff --git a/maven-artifact/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java b/maven-artifact/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java index 10fae350eb..1b42da9557 100644 --- a/maven-artifact/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java +++ b/maven-artifact/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java @@ -77,7 +77,7 @@ public class DefaultArtifactResolver logger.debug( "Resolving: " + artifact.getId() + " from:\n" + "{localRepository: " + localRepository + "}\n" + "{remoteRepositories: " + remoteRepositories + "}" ); - artifact.setPath( getLocalRepositoryArtifactPath( localRepository, artifact ) ); + artifact.setPath( getLocalRepositoryArtifactPath( artifact, localRepository ) ); if ( artifact.exists() ) { @@ -294,7 +294,7 @@ public class DefaultArtifactResolver try { - artifact.setPath( getLocalRepositoryArtifactPath( localRepository, artifact ) ); + artifact.setPath( getLocalRepositoryArtifactPath( artifact, localRepository ) ); } catch ( ArtifactPathFormatException e ) {