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

file-aggregator containerDescriptorHandler element requires metaInf-services to precede it

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.6
    • None
    • component descriptor
    • None
    • OS-X 10.11.5

    Description

      When using a containerDescriptorHandler of type file-aggregator, the files are not aggregated unless a containerDescriptorHandler of type metaInf-services comes first:

      <assembly>
         ...
          <containerDescriptorHandlers>
              <!-- remove this element and the following file-aggregator generates an empty file -->
              <containerDescriptorHandler>
                  <handlerName>metaInf-services</handlerName>
              </containerDescriptorHandler>
      
              <containerDescriptorHandler>
                  <handlerName>file-aggregator</handlerName>
                  <configuration>
                      <filePattern>reference.conf</filePattern>
                      <outputPath>reference.conf</outputPath>
                  </configuration>
              </containerDescriptorHandler>
          </containerDescriptorHandlers>
      </assembly>
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            topping Brian Topping
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: