maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stanislav Tyurikov (JIRA)" <j...@codehaus.org>
Subject [jira] (MNG-5323) Add ability to interrupt a build with SUCCESS status from maven plugins.
Date Mon, 10 Sep 2012 09:36:21 GMT

    [ https://jira.codehaus.org/browse/MNG-5323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=308082#comment-308082
] 

Stanislav Tyurikov commented on MNG-5323:
-----------------------------------------

Gregor, thank you for reply.

>> I thought maven would already do that if you don't supply the "clean" option..?
If you have A.java and B.java on the first build, then you delete A.java and run the second
build without "clean", A.class and B.class will be exist in result jar. A.class wouldn't be
deleted because of no "clean" was performed. This is wrong. Only B.class must exist.

>> Shouldn't this be handled by the Plexus container itself, instead of controlling
the build process from the plugin? 
May be... but isn't it looks as complete API to have ways to finish build with different results?
I can interrupt a build from a my plugin to mark it as failed, why can't I do this to say
"build is ok"?

                
> 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.0.5
>         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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message