mirror of
https://github.com/apache/maven.git
synced 2025-02-06 10:09:04 +00:00
Changing DefaultPluginManager to lookup a plugin's artifact from pluginRepositories, and changing the location of the super-pom's pluginRepository.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@193081 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
bcf34b9bb5
commit
78be40776c
@ -267,7 +267,7 @@ protected void addPlugin( String pluginKey, Artifact pluginArtifact, MavenProjec
|
||||
{
|
||||
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 ) );
|
||||
|
@ -16,7 +16,7 @@
|
||||
<pluginRepository>
|
||||
<id>central</id>
|
||||
<name>Maven Plugin Repository</name>
|
||||
<url>http://repo1.maven.org/maven2</url>
|
||||
<url>http://repo1.maven.org/maven2/plugins</url>
|
||||
<layout>default</layout>
|
||||
</pluginRepository>
|
||||
</pluginRepositories>
|
||||
|
Loading…
x
Reference in New Issue
Block a user