From 352fd0a543a342250587ac949f1fe86fc732e605 Mon Sep 17 00:00:00 2001 From: Benjamin Bentmann Date: Tue, 3 Mar 2009 00:33:55 +0000 Subject: [PATCH] o Fixed handling of plugin groups git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@749493 13f79535-47bb-0310-9956-ffa450edef68 --- .../execution/DefaultMavenExecutionRequestPopulator.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/maven-embedder/src/main/java/org/apache/maven/embedder/execution/DefaultMavenExecutionRequestPopulator.java b/maven-embedder/src/main/java/org/apache/maven/embedder/execution/DefaultMavenExecutionRequestPopulator.java index ca513aa123..45f2cb3943 100644 --- a/maven-embedder/src/main/java/org/apache/maven/embedder/execution/DefaultMavenExecutionRequestPopulator.java +++ b/maven-embedder/src/main/java/org/apache/maven/embedder/execution/DefaultMavenExecutionRequestPopulator.java @@ -158,7 +158,7 @@ public class DefaultMavenExecutionRequestPopulator Properties userProperties = request.getUserProperties(); if ( userProperties != null ) { - for ( Iterator it = userProperties.keySet().iterator(); it.hasNext(); ) + for ( Iterator it = userProperties.keySet().iterator(); it.hasNext(); ) { String key = (String) it.next(); if ( !requestProperties.containsKey( key ) ) @@ -191,6 +191,8 @@ public class DefaultMavenExecutionRequestPopulator Settings settings = request.getSettings(); + request.setPluginGroups( settings.getPluginGroups() ); + List settingsProfiles = settings.getProfiles(); List settingsActiveProfileIds = settings.getActiveProfiles(); @@ -548,11 +550,11 @@ public class DefaultMavenExecutionRequestPopulator } // Now, add in any event monitors from the Configuration instance. - List configEventMonitors = configuration.getEventMonitors(); + List configEventMonitors = configuration.getEventMonitors(); if ( ( configEventMonitors != null ) && !configEventMonitors.isEmpty() ) { - for ( Iterator it = configEventMonitors.iterator(); it.hasNext(); ) + for ( Iterator it = configEventMonitors.iterator(); it.hasNext(); ) { EventMonitor monitor = (EventMonitor) it.next(); request.addEventMonitor( monitor );