title: maven-remote-resources-plugin doesn't copy files, only folder structure
body: <p>I have a maven project with a module which is a java web application (A module) and another module (B module) that is also a java web application that uses the classes from the A module and its resources. Creating a jar and installing it in the maven repository its no problem to compile the B module but my problem its to copy the resources from A to B.</p>
  <p>I am trying to copy the jsp and other files from A module. Following the documentation and some blogs I managed to get the <code>target\classes\META-INF\maven\remote-resources.xml</code>, but when I try to copy those resources in the B module I only get the folder structure but any file inside.</p>
  <p>A module pom</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;profile&gt;
      &lt;id&gt;validator&lt;/id&gt;
      &lt;properties&gt;
          &lt;packaging.type&gt;jar&lt;/packaging.type&gt;
      &lt;/properties&gt;
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;artifactId&gt;maven-remote-resources-plugin&lt;/artifactId&gt;
                  &lt;version&gt;1.4&lt;/version&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;bundle&lt;/goal&gt;
                          &lt;/goals&gt;
                          &lt;configuration&gt;
                              &lt;resourcesDirectory&gt;${project.basedir}/src/main/webapp&lt;/resourcesDirectory&gt;
                              &lt;excludes&gt;
                                  &lt;exclude&gt;**/WEB-INF/**&lt;/exclude&gt;
                                  &lt;exclude&gt;**/META-INF/**&lt;/exclude&gt;
                              &lt;/excludes&gt;
                              &lt;includes&gt;
                                  &lt;include&gt;**/*.*&lt;/include&gt;
                              &lt;/includes&gt;
                          &lt;/configuration&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  &lt;/profile&gt;
  </code></pre>
  <p>B module pom</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;profile&gt;
      &lt;id&gt;embedded&lt;/id&gt;
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-remote-resources-plugin&lt;/artifactId&gt;
                  &lt;version&gt;1.4&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;resourceBundles&gt;
                          &lt;resourceBundle&gt;my.group:my.artifact:${my.version}&lt;/resourceBundle&gt;
                      &lt;/resourceBundles&gt;
                  &lt;/configuration&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;process&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
          &lt;resources&gt;
              &lt;resource&gt;
                  &lt;directory&gt;${project.basedir}/src/main/resources&lt;/directory&gt;
              &lt;/resource&gt;
              &lt;resource&gt;
                  &lt;directory&gt;${project.basedir}/src/main/config/embedded&lt;/directory&gt;
              &lt;/resource&gt;
          &lt;/resources&gt;
      &lt;/build&gt;
  &lt;/profile&gt;
  </code></pre>
  <p>In the output I get no errors but there are no files in the <code>target\maven-shared-archive-resources\</code> only the folder structure as it is in module A.</p>
  <p>Any idea what I am doing wrong?</p>