title: Filtering resources with different encodings
body: <p>I have a maven project. In <code>/src/main/resources/</code> I have two files <code>foo.properties</code> and <code>bar.xml</code>. The first is encoded in ISO-8859-1 and the second one in UTF-8.</p>
  
  <p>Is there an easy way to get filtering for both files without breaking encoding?</p>
  
  <p>As far as I see, I cannot specify an encoding in a <code>&lt;resource&gt;</code> block. It seems only possible to specify an encoding for the plugin itself, but this would lead in both files being filtered using the same encoding.</p>
  
  <p>Ideally I would like to specify something like:</p>
  
  <ul>
  <li>*.properties -> filter using ISO-8859-1</li>
  <li>*.xml -> filter using UTF-8</li>
  <li>*.pdf -> do not filter</li>
  <li>anything else -> filter using default encoding</li>
  </ul>
  
  <p>This doesn't feel like a very unusual situation, is there an easy way to configure this?</p>