diff --git a/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java b/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java index f118cd4384..80def18a05 100644 --- a/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java +++ b/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java @@ -267,7 +267,7 @@ public class DefaultPluginManager { artifactResolver = (ArtifactResolver) container.lookup( ArtifactResolver.ROLE ); - artifactResolver.resolve( pluginArtifact, project.getRemoteArtifactRepositories(), localRepository ); + artifactResolver.resolve( pluginArtifact, project.getPluginArtifactRepositories(), localRepository ); PlexusContainer child = container.createChildContainer( pluginKey, Collections .singletonList( pluginArtifact.getFile() ), Collections.EMPTY_MAP, Collections.singletonList( this ) ); diff --git a/maven-project/src/main/resources/org/apache/maven/project/pom-4.0.0.xml b/maven-project/src/main/resources/org/apache/maven/project/pom-4.0.0.xml index c48efd15c5..2f74033978 100644 --- a/maven-project/src/main/resources/org/apache/maven/project/pom-4.0.0.xml +++ b/maven-project/src/main/resources/org/apache/maven/project/pom-4.0.0.xml @@ -16,7 +16,7 @@ central Maven Plugin Repository - http://repo1.maven.org/maven2 + http://repo1.maven.org/maven2/plugins default