From 05dc94a90e0244fe08d04f551d6167bbc2ae09cf Mon Sep 17 00:00:00 2001 From: Benjamin Bentmann Date: Mon, 12 Oct 2009 12:44:48 +0000 Subject: [PATCH] o Fixed logging git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@824321 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/maven/cli/MavenCli.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 bd8091b01f..b5dafdb6e5 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 @@ -52,8 +52,6 @@ import org.codehaus.plexus.PlexusContainerException; import org.codehaus.plexus.classworlds.ClassWorld; import org.codehaus.plexus.component.repository.exception.ComponentLifecycleException; import org.codehaus.plexus.component.repository.exception.ComponentLookupException; -import org.codehaus.plexus.logging.Logger; -import org.codehaus.plexus.logging.console.ConsoleLogger; import org.codehaus.plexus.util.StringUtils; import org.codehaus.plexus.util.cli.CommandLineUtils; import org.sonatype.plexus.components.cipher.DefaultPlexusCipher; @@ -231,7 +229,7 @@ public class MavenCli } catch ( ComponentLookupException e ) { - CLIReportingUtils.showError( new ConsoleLogger( Logger.LEVEL_ERROR, Maven.class.getName() ), "Unable to start the embedder: ", e, showErrors ); + CLIReportingUtils.showError( logger, "Unable to start the embedder: ", e, showErrors ); return 1; }