[MNG-4782] Automatically dump stack trace in case of internal Maven error

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@989869 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2010-08-26 18:46:33 +00:00
parent 9c801ca1df
commit 901e599986
1 changed files with 2 additions and 1 deletions

View File

@ -33,6 +33,7 @@
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.ParseException;
import org.apache.commons.cli.UnrecognizedOptionException;
import org.apache.maven.InternalErrorException;
import org.apache.maven.Maven;
import org.apache.maven.exception.DefaultExceptionHandler;
import org.apache.maven.exception.ExceptionHandler;
@ -539,7 +540,7 @@ private void logSummary( ExceptionSummary summary, Map<String, String> reference
}
}
if ( showErrors )
if ( showErrors || ( summary.getException() instanceof InternalErrorException ) )
{
logger.error( msg, summary.getException() );
}