mirror of https://github.com/apache/maven.git
[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:
parent
9c801ca1df
commit
901e599986
|
@ -33,6 +33,7 @@ import java.util.StringTokenizer;
|
|||
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 @@ public class MavenCli
|
|||
}
|
||||
}
|
||||
|
||||
if ( showErrors )
|
||||
if ( showErrors || ( summary.getException() instanceof InternalErrorException ) )
|
||||
{
|
||||
logger.error( msg, summary.getException() );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue