Uploaded image for project: 'Maven Shade Plugin'
  1. Maven Shade Plugin
  2. MSHADE-232

Introduce ResourceBundleAppendingTransformer

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.3
    • Fix Version/s: 3.0.0
    • Labels:
      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.

        Attachments

          Activity

            People

            • Assignee:
              rfscholte Robert Scholte
              Reporter:
              striderapache dennis lucero
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: