Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.4.3
-
None
Description
AppendingTransformer should support wildcards in resource elements.
Currently it is necessary to add
<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> <resource>ValidationMessages.properties</resource> </transformer> <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> <resource>ValidationMessages_en.properties</resource> </transformer> <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> <resource>ValidationMessages_de.properties</resource> </transformer>
and so on to join messages from different dependencies.
In this case it should be sufficient to specify a single AppendingTransformer having
<resource>ValidationMessages*.properties</resource>
but that should not match ValidationMessagesFoo/Bar.properties (maybe <resource>ValidationMessages**.properties</resource> would).
Alternatively a way to specify regular expressions would also work.