diff --git a/src/main/java/org/apache/maven/shared/invoker/DefaultInvoker.java b/src/main/java/org/apache/maven/shared/invoker/DefaultInvoker.java index b545466..7c9b93b 100644 --- a/src/main/java/org/apache/maven/shared/invoker/DefaultInvoker.java +++ b/src/main/java/org/apache/maven/shared/invoker/DefaultInvoker.java @@ -101,7 +101,7 @@ public InvocationResult execute( InvocationRequest request ) } catch ( CommandLineConfigurationException e ) { - throw new MavenInvocationException( "Error configuring command-line. Reason: " + e.getMessage(), e ); + throw new MavenInvocationException( "Error configuring command line", e ); } DefaultInvocationResult result = new DefaultInvocationResult(); diff --git a/src/main/java/org/apache/maven/shared/invoker/MavenCommandLineBuilder.java b/src/main/java/org/apache/maven/shared/invoker/MavenCommandLineBuilder.java index 7c7e985..b351d01 100644 --- a/src/main/java/org/apache/maven/shared/invoker/MavenCommandLineBuilder.java +++ b/src/main/java/org/apache/maven/shared/invoker/MavenCommandLineBuilder.java @@ -259,7 +259,7 @@ protected void setGoals( InvocationRequest request, Commandline cli ) throws Com } catch ( CommandLineException e ) { - throw new CommandLineConfigurationException( "Problem to set goals: " + e.getMessage(), e ); + throw new CommandLineConfigurationException( "Problem setting goals", e ); } } }