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 );