title: Maven shade plugin does not merge files
body: <p>My goal is to merge two XML files (both named <code>info.xml</code>) which are in <code>src/main/resources</code> of two Maven modules (<code>packaging:jar</code>) into a target WAR archive.</p>
  
  <p>proj1: contains <code>src/main/resources/info.xml</code></p>
  
  <p>proj2: contains <code>src/main/resources/info.xml</code></p>
  
  <p>web: web project which should contain a merged info.xml from proj1 and proj2. I declared the plugin in the web project:</p>
  
  <pre><code>&lt;build&gt;     
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-shade-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.2&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;phase&gt;package&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;shade&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;transformers&gt;
                              &lt;transformer
                                  implementation="org.apache.maven.plugins.shade.resource.XmlAppendingTransformer"&gt;
                                  &lt;resource&gt;info.xml&lt;/resource&gt;
                              &lt;/transformer&gt;
                          &lt;/transformers&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p>To build the web project and its modules I have a build project with:</p>
  
  <pre><code>&lt;modules&gt;
      &lt;module&gt;proj1&lt;/module&gt;
      &lt;module&gt;proj2&lt;/module&gt;
      &lt;module&gt;web&lt;/module&gt;
  &lt;modules&gt;
  </code></pre>
  
  <p>I tried using a <code>mvn clean package</code> command in the build project and as result my <code>web/target/web.war</code> contains the unpacked libs (ueber.jar which I don't really want) and NO merged info.xml files.</p>
  
  <p>What am I doing wrong?!</p>