Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-5323

Add ability to interrupt a build with SUCCESS status from maven plugins.

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Critical
    • Resolution: Won't Fix
    • Affects Version/s: 3.2.x
    • Fix Version/s: None
    • Component/s: General, Plugin API
    • Labels:
      None
    • Environment:
      any

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              nirro Stanislav Tyurikov

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment