Uploaded image for project: 'Maven Assembly Plugin'
  1. Maven Assembly Plugin
  2. MASSEMBLY-226

Filters as read-only parameter can break the assembly build of a multi-module project

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2-beta-1
    • 2.2-beta-2
    • None
    • None

    Description

      When I specify <build><filters> in the root project for filtering files of an assembly, then running "assembly:assembly" breaks. This is because <build><filters> configuration is inherited in the modules, and Maven does not correctly inherit this configuration (see MNG-2445).

      I attached an example project to test this:

      • run "assembly:attached" on the root project: it works fine
      • run "assembly:assembly" on the root project: it breaks

      I think the "filters" argument of the assembly plugin should not be read-only. Instead, it should be possible to redefine it locally, or leave it blank if we want the plugin to take the <build><filters> definition instead.

      What do you think of this? I can work on this.

      Attachments

        1. FiltersTest.zip
          2 kB
          Fabrice Bellingard
        2. FiltersNotReadOnly.patch
          0.9 kB
          Fabrice Bellingard

        Issue Links

          Activity

            People

              fabemn Fabrice Bellingard
              fabemn Fabrice Bellingard
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: