[
http://jira.codehaus.org/browse/MINVOKER-25?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=132704#action_132704
]
Benjamin Bentmann commented on MINVOKER-25:
-------------------------------------------
As a workaround you can simply put a {{goals.txt}} into the IT project's base
directory and specify the flag "-fn" as a goal, for example:
{noformat}
-fn
package
{noformat}
Not pretty, but makes the IT build pass and calling your post build script for
verification.
> invoke postBuildHookScript even if build failed
> -----------------------------------------------
>
> Key: MINVOKER-25
> URL: http://jira.codehaus.org/browse/MINVOKER-25
> Project: Maven 2.x Invoker Plugin
> Issue Type: Improvement
> Affects Versions: 1.2
> Reporter: Mykola Nikishov
> Priority: Critical
> 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/[EMAIL PROTECTED]
--
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