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

Olivier Lamy commented on MINVOKER-25:
--------------------------------------

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

> invoke postBuildHookScript even if build failed
> -----------------------------------------------
>
>                 Key: MINVOKER-25
>                 URL: https://issues.apache.org/jira/browse/MINVOKER-25
>             Project: Maven Invoker Plugin (Moved to GitHub Issues)
>          Issue Type: Improvement
>    Affects Versions: 1.1
>            Reporter: Mykola Nikishov
>            Assignee: Benjamin Bentmann
>            Priority: Critical
>             Fix For: 1.2
>
>         Attachments: 0001-enable-negative-tests.patch
>
>
> I develop a plugin which is ok to break a build. Current workflow using 
> maven-invoker-plugin looks like:
> - if my plug-in works as expected ;-) it breaks an IT build during 
> integration-test phase
> - the MojoFailureException is thrown
> - the maven-invoker-plugin reports that build failed
> - a script defined in postBuildHookScript is never used
> As a result I have a false alarm - a broken build when everything is ok. I 
> would like to have an opportunity to decide from a postBuildHookScript 
> whether a build was successful or not.
> I've implemented desired functionality and attached a patch against 
> trunk/maven-invoker-plugin@632679.



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

Reply via email to