[ 
https://issues.apache.org/jira/browse/MNG-7146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Guillaume Nodet updated MNG-7146:
---------------------------------
    Fix Version/s: 4.x / Backlog

> Introduce MojoExceptionHandler
> ------------------------------
>
>                 Key: MNG-7146
>                 URL: https://issues.apache.org/jira/browse/MNG-7146
>             Project: Maven
>          Issue Type: New Feature
>            Reporter: Robert Scholte
>            Priority: Major
>             Fix For: 4.0.x-candidate, 4.x / Backlog
>
>
> A long time ago discussed with [~aheritier], but never created a ticket for 
> it.
> Reason behind this is that Jenkins wants to build the complete project and 
> uses a hack to ignore test failures. by rewriting the surefire configuration.
> It would be better if Jenkins could catch the Exception and decide what to do 
> with it.
> Important, the build must fail, even if all these Exceptions are ignored.
> {code:java|title=DefaultExceptionHandler.java}
> public void handle(MojoException ex) throws MojoException
> {
>   throw ex;
> }
> {code}
> {code:java|title=JenkinsExceptionHandler.java}
> public void handle(MojoException ex) throws MojoException
> {
>   // ignore or throw
> }
> {code}



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

Reply via email to