mirror of https://github.com/apache/maven.git
improve error handling
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163629 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f5bd920140
commit
847e6b8852
|
@ -225,9 +225,18 @@ public class DefaultMaven
|
||||||
if ( response.isExecutionFailure() )
|
if ( response.isExecutionFailure() )
|
||||||
{
|
{
|
||||||
// TODO: yuck! Revisit when cleaning up the exception handling from the top down
|
// TODO: yuck! Revisit when cleaning up the exception handling from the top down
|
||||||
if ( response.getException() instanceof PluginExecutionException )
|
Throwable exception = response.getException();
|
||||||
|
|
||||||
|
if ( exception instanceof PluginExecutionException )
|
||||||
{
|
{
|
||||||
logFailure( response, (PluginExecutionException) response.getException() );
|
if ( exception.getCause() == null )
|
||||||
|
{
|
||||||
|
logFailure( response, (PluginExecutionException) exception );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
logError( response );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue