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

Command line option to exclude NESTED modules

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.6.1
    • None
    • Command Line

    Description

      MNG-5230 added the -pl !g:a switch to exclude explicitly mentioned module g:a, but keep all other modules in the reactor build, including the submodules of g:a.

      In some projects there are deeply nested hierarchies of modules just for structuring purposes. In such purely structural needs for hiearchies, it makes sense to exclude the submodules of g:a. Currently the caller must explicitly KNOW and PROVIDE all off them by hand. This is tedious and error-prone.

      Hence it would be great if there would be a command line option to turn the "-pl !g:a" switch into a recursive variant that also skips the children and grandchildren of g:a. The optimal solution would be to not add another global switch (like -amb) but to have a flag for each excluded module, like "-pl !+g:a" a plus symbol explicitly enabling recursion ONLY for g:a but not for other modules.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mkarg Markus Karg
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: