diff --git a/maven-compat/src/main/java/org/apache/maven/artifact/repository/DefaultArtifactRepositoryFactory.java b/maven-compat/src/main/java/org/apache/maven/artifact/repository/DefaultArtifactRepositoryFactory.java index 6789ba5653..d24bf12bbd 100644 --- a/maven-compat/src/main/java/org/apache/maven/artifact/repository/DefaultArtifactRepositoryFactory.java +++ b/maven-compat/src/main/java/org/apache/maven/artifact/repository/DefaultArtifactRepositoryFactory.java @@ -73,7 +73,7 @@ public class DefaultArtifactRepositoryFactory ArtifactRepositoryPolicy releases ) throws UnknownRepositoryLayoutException { - return injectSession( factory.createArtifactRepository( layoutId, url, layoutId, snapshots, releases ), true ); + return injectSession( factory.createArtifactRepository( id, url, layoutId, snapshots, releases ), true ); } public ArtifactRepository createArtifactRepository( String id, String url,