You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Stanislav Tyurikov (JIRA)" <ji...@codehaus.org> on 2014/04/11 09:28:10 UTC

[jira] (MNG-5323) Add ability to interrupt a build with SUCCESS status from maven plugins.

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

Stanislav Tyurikov reopened MNG-5323:
-------------------------------------


> Add ability to interrupt a build with SUCCESS status from maven plugins.
> ------------------------------------------------------------------------
>
>                 Key: MNG-5323
>                 URL: https://jira.codehaus.org/browse/MNG-5323
>             Project: Maven 2 & 3
>          Issue Type: Improvement
>          Components: General, Plugin API
>    Affects Versions: 3.1.x
>         Environment: any
>            Reporter: Stanislav Tyurikov
>            Priority: Critical
>         Attachments: build_succeed_exception.patch
>
>
> Add ability to successfully finish a build from maven plugin. It can help to create maven plugins for build optimization. Currently we can interrupt a build only to fail it (by throwing an exception from the execute method of a mojo).
> This functionality can be easily implemented by adding BuildSuccessException to the maven core and modifying LifecycleModuleBuilder and DefaultBuildPluginManager to process this exception and finish the build as succeed. Any custom maven plugin can throw BuildSuccessException to indicate the build is OK and no further steps are needed to be executed.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)