[ 
https://issues.apache.org/jira/browse/MINVOKER-78?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17958282#comment-17958282
 ] 

Olivier Lamy commented on MINVOKER-78:
--------------------------------------

This project has moved from Jira to GitHub Issues. This issue was migrated to 
[apache/maven-invoker-plugin#450|https://github.com/apache/maven-invoker-plugin/issues/450].
 

> Throwing subclasses of java.lang.Error from hook script aborts main build 
> with "FATAL ERROR"
> --------------------------------------------------------------------------------------------
>
>                 Key: MINVOKER-78
>                 URL: https://issues.apache.org/jira/browse/MINVOKER-78
>             Project: Maven Invoker Plugin (Moved to GitHub Issues)
>          Issue Type: Bug
>    Affects Versions: 1.3
>            Reporter: Benjamin Bentmann
>            Assignee: Benjamin Bentmann
>            Priority: Minor
>             Fix For: 1.4
>
>
> The current script interpreter facades in the Invoker Plugin only catch 
> subclasses of {{java.lang.Exception}} from the script invocation but 
> instances of {{java.lang.Error}} go through uncaught, upto the main Maven 
> build where they cause a "FATAL ERROR". In other words, the plugin parameter 
> {{ignoreFailures}} is ineffective in those cases.
> The most prominent example of this issue are post-build Groovy scripts that 
> employ the {{assert}} keywords which in turn creates a 
> {{java.lang.AssertionError}}.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to