maven-assembly-plugin
maven-assembly-plugin copied to clipboard
[MASSEMBLY-815] file-aggregator containerDescriptorHandler element requires metaInf-services to precede it
Brian Topping opened MASSEMBLY-815 and commented
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>
Affects: 2.6
1 votes, 2 watchers
Arnaud Bourrée commented
I've got same issue. When trying to understand why that doesn't work, it's confusing that files matching filepattern are removed from assembly generated output: meaning assembly did something with.