o Fixed resolution of plugin default config. The project building request provides only the base set of repos, not the final set. In addition to the base set, the final repo list contains POM repos and repos from external profiles. Therefore, the MavenProject instance (which holds the final repo set) has to be queried for the repos.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@796657 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-07-22 10:03:53 +00:00
parent 1329516567
commit 03c8b58235
1 changed files with 1 additions and 3 deletions

View File

@ -140,8 +140,6 @@ public class DefaultProjectBuilder
project.setOriginalModel( result.getRawModel() );
// project.setRemoteArtifactRepositories( configuration.getRemoteRepositories() );
// project.setPluginArtifactRepositories( configuration.getPluginArtifactRepositories() );
project.setRemoteArtifactRepositories( listener.getRemoteRepositories() );
project.setPluginArtifactRepositories( listener.getPluginRepositories() );
@ -153,7 +151,7 @@ public class DefaultProjectBuilder
{
lifecycle.populateDefaultConfigurationForPlugins( model.getBuild().getPlugins(),
configuration.getLocalRepository(),
configuration.getPluginArtifactRepositories() );
project.getPluginArtifactRepositories() );
}
}
catch ( LifecycleExecutionException e )