You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Arnaud Bourrée (Jira)" <ji...@apache.org> on 2020/10/07 12:12:00 UTC
[jira] [Commented] (MASSEMBLY-815) file-aggregator
containerDescriptorHandler element requires metaInf-services to precede it
[ https://issues.apache.org/jira/browse/MASSEMBLY-815?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17209501#comment-17209501 ]
Arnaud Bourrée commented on MASSEMBLY-815:
------------------------------------------
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.
> file-aggregator containerDescriptorHandler element requires metaInf-services to precede it
> ------------------------------------------------------------------------------------------
>
> Key: MASSEMBLY-815
> URL: https://issues.apache.org/jira/browse/MASSEMBLY-815
> Project: Maven Assembly Plugin
> Issue Type: Bug
> Components: component descriptor
> Affects Versions: 2.6
> Environment: OS-X 10.11.5
> Reporter: Brian Topping
> Priority: Minor
>
> When using a {{containerDescriptorHandler}} of type {{file-aggregator}}, the files are not aggregated unless a {{containerDescriptorHandler}} of type {{metaInf-services}} comes first:
> {code:xml}
> <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>
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)