o start of reporting so i can track every last problem

git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@769585 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason van Zyl 2009-04-28 23:13:42 +00:00
parent 0127ba0c14
commit d78af4efbe
1 changed files with 6 additions and 1 deletions

View File

@ -31,6 +31,7 @@ import org.apache.maven.embedder.MavenEmbedderConsoleLogger;
import org.apache.maven.embedder.MavenEmbedderException;
import org.apache.maven.embedder.MavenEmbedderFileLogger;
import org.apache.maven.embedder.MavenEmbedderLogger;
import org.apache.maven.exception.ExceptionSummary;
import org.apache.maven.execution.MavenExecutionRequest;
import org.apache.maven.execution.MavenExecutionResult;
import org.codehaus.plexus.classworlds.ClassWorld;
@ -170,7 +171,11 @@ public class MavenCli
if ( result.hasExceptions() )
{
System.out.println( result.getExceptionSummary().getMessage() );
ExceptionSummary es = result.getExceptionSummary();
System.out.println( es.getMessage() );
es.getException().printStackTrace();
return 1;
}