Uploaded image for project: 'Maven Resources Plugin'
  1. Maven Resources Plugin
  2. MRESOURCES-240

Add some binnary types to nonFilteredFileExte‌​nsion by default

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • filtering
    • Patch

    Description

      Hi!

      I had problems with filtering binnary resources, fonts and icons from my application where corrupted during the build process.

      To solve, I added this configuration to the maven-resources-plugin:
      <pluginManagement>
      <plugins>
      <plugin>
      <artifactId>maven-resources-plugin</artifactId>
      <configuration>
      <nonFilteredFileExtensions>
      <nonFilteredFileExtension>svg</nonFilteredFileExtension>
      <nonFilteredFileExtension>woff</nonFilteredFileExtension>
      <nonFilteredFileExtension>woff2</nonFilteredFileExtension>
      <nonFilteredFileExtension>ttf</nonFilteredFileExtension>
      <nonFilteredFileExtension>eot</nonFilteredFileExtension>
      <nonFilteredFileExtension>otf</nonFilteredFileExtension>
      </nonFilteredFileExtensions>
      </configuration>
      </plugin>
      </plugins>
      </pluginManagement>

      And I was wondering if this binnary types coudn't be excluded from filters by default.

      I think It would be possible, changing the org.apache.maven.shared.maven-filtering plugin by applying this patch to the org.apache.maven.shared.filtering.DefaultMavenResourcesFiltering class:

      79a80,85
      > this.defaultNonFilteredFileExtensions.add( "svg" );
      > this.defaultNonFilteredFileExtensions.add( "woff" );
      > this.defaultNonFilteredFileExtensions.add( "woff2" );
      > this.defaultNonFilteredFileExtensions.add( "ttf" );
      > this.defaultNonFilteredFileExtensions.add( "eot" );
      > this.defaultNonFilteredFileExtensions.add( "otf" );

      Only a suggestion, thanks 4 all...

      Attachments

        Activity

          People

            khmarbaise Karl Heinz Marbaise
            flavioarcega Flávio Casas de Arcega
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: