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

Introduce ResourceBundleAppendingTransformer

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4.3
    • 3.0.0
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: