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

Resume reactor build after skipped project using -pl !X -rf X combination

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.6.1
    • 4.0.0-alpha-2, 4.0.0
    • Core
    • None

    Description

      With huge multi-module builds sometimes it would come handy if Maven would have a "skip-this-and-resume" option. For example, you have hundreds of sub modules built fine, but one of them is heavily broken; due to your current task you want to ignore that one project just for now, and repeat the reactor build after the broken one. Due to the heavily long multi-hours time your already spent, you do not want to start from the beginning.

      A nice syntax for this would be the combination "-pl !X -rf X" which means: "Resume after X".

      At the moment this is not working, as "-pl X" removes X from the project list, so "-rf X" says it cannot find X. The fix should be that "-pl X" keeps X on the project list but marks it explicitly as SKIPPED, so "-rf X" finds X, but detects that it is to be SKIPPED, so it resumes with the next-in-list.

      Attachments

        Activity

          People

            rfscholte Robert Scholte
            mkarg Markus Karg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: