maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mukarram Baig <mukarram.b...@gmail.com>
Subject AppendingTransformer in maven shade plugin to support pattern matches?
Date Thu, 04 Jul 2013 08:54:31 GMT
Hello,

The org.apache.maven.plugins.shade.resource.AppendingTransformer in the
maven shade plugin (v 2.0) only supports exact resource name matches for
appending resources for the uber jar. Do you guys see any problems if this
this supports patterns that might be able to do it for a bunch of resources
at a time, rather than repeating the names of the files:

<transformer
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
    <resource>META-INF/spring.*</resource>
</transformer>

instead of

<transformer
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
    <resource>META-INF/spring.handlers</resource>
</transformer>
<transformer
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
    <resource>META-INF/spring.schemas</resource>
</transformer>

If you don't see a problem, I can go ahead and propose a patch for it.

Thanks in advance!

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message