title: How can I merge resource files in a Maven assembly?
body: <p>I'm using Maven and its assembly plugin to build a distribution package of my project like this:</p>
  
  <ul>
  <li>one project assembles a basic runtime (based on Felix), with the appropriate directories and bundles, in a ZIP file.</li>
  <li>third-party libraries are collected in one project each and either converted to OSGi bundles or, if they are already OSGi compatible, they are just copied</li>
  <li>my own project consists of several modules that are built into OSGi bundles, too.</li>
  </ul>
  
  <p>Now, I'm adding another project that unpacks the ZIP, drops all the other JARs into the proper directories, and repackages it for distribution. Now, my bundles might contain configuration files that I want to merge into, rather than replacing, identically named ones in the runtime assembly. How do I do that?</p>
  
  <p>The files are plain text (property files), but I might run into a similar situation with XML files later.</p>