Throwing subclasses of java.lang.Error from hook script aborts main build with 
"FATAL ERROR"
--------------------------------------------------------------------------------------------

                 Key: MINVOKER-78
                 URL: http://jira.codehaus.org/browse/MINVOKER-78
             Project: Maven 2.x Invoker Plugin
          Issue Type: Bug
    Affects Versions: 1.3
            Reporter: Benjamin Bentmann
            Priority: Minor


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 is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to