diff --git a/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java b/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java index 80e0991d3f..c5b5c4a44f 100644 --- a/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java +++ b/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java @@ -365,7 +365,7 @@ public class MavenCli settingsBuilder = container.lookup( SettingsBuilder.class ); - dispatcher = (DefaultSecDispatcher) container.lookup( SecDispatcher.class ); + dispatcher = (DefaultSecDispatcher) container.lookup( SecDispatcher.class, "maven" ); } protected void customizeContainer( PlexusContainer container )