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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Critical
    • Resolution: Won't Fix
    • 3.2.x
    • None
    • General, Plugin API
    • None
    • 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

        1. build_succeed_exception.patch
          6 kB
          Stanislav Tyurikov

        Activity

          People

            Unassigned Unassigned
            nirro Stanislav Tyurikov
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: