title: How to use <includes> / <excludes> in maven-remote-resources-plugin
body: <p>I am trying to use the maven-remote-resources-plugin as per <a href="http://maven.apache.org/plugins/maven-remote-resources-plugin/examples/sharing-resources.html" rel="nofollow">this</a> example to selectively share common resources between multiple maven modules and I'm having a lot of difficulty getting the selective import of the resources to work.</p>
  
  <p>I am trying to use <code>&lt;includes&gt;</code> and <code>&lt;excludes&gt;</code> elements as per below.  I haven't seen these mentioned in doco for the plugin anywhere but eclipse provides them as valid options in the command completion and I don't get any errors when I run the pom.  So far I haven't been able to get <code>&lt;includes&gt;</code> or <code>&lt;excludes&gt;</code> to have any effect at all on the imported resources</p>
  
  <p>The relevant sections of my pom are;</p>
  
  <p>Shared resources</p>
  
  <pre><code>&lt;build&gt;
    &lt;plugins&gt;
      &lt;plugin&gt;
         &lt;artifactId&gt;maven-remote-resources-plugin&lt;/artifactId&gt;
         &lt;executions&gt;
           &lt;execution&gt;
             &lt;goals&gt;
               &lt;goal&gt;bundle&lt;/goal&gt;
             &lt;/goals&gt;
           &lt;/execution&gt;
         &lt;/executions&gt;
         &lt;configuration&gt;
           &lt;includes&gt;
             &lt;include&gt;**/*&lt;/include&gt;
           &lt;/includes&gt;
         &lt;/configuration&gt;
       &lt;/plugin&gt;
    &lt;/plugins&gt;
  &lt;/build&gt;
  
  &lt;dependencies&gt;
    &lt;dependency&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.3&lt;/version&gt;
    &lt;/dependency&gt;
  &lt;/dependencies&gt;
  </code></pre>
  
  <p>Resource consumer</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-remote-resources-plugin&lt;/artifactId&gt;
         &lt;version&gt;1.3&lt;/version&gt;
         &lt;configuration&gt;
           &lt;resourceBunldes&gt;
             &lt;resourceBundle&gt;myApp:myApp_sharedresources:${project.version}&lt;/resourceBundle&gt;
           &lt;/resourceBundles&gt;
           &lt;outputDirectory&gt;${project.build.outputDirectory}&lt;/outputDirectory&gt;
           &lt;includes&gt;
             &lt;include&gt;theOnlyResourceIWant.properties&lt;/include&gt;
           &lt;/includes&gt;
         &lt;/configuration&gt;
         &lt;executions&gt;
           &lt;execution&gt;
             &lt;goals&gt;
               &lt;goal&gt;process&lt;/goal&gt;
             &lt;/goals&gt;
             &lt;phase&gt;generate-resources&lt;/phase&gt;
           &lt;/execution&gt;
         &lt;/executions&gt;
       &lt;/plugin&gt;
    &lt;/plugins&gt;
  &lt;/build&gt;
  
  &lt;dependencies&gt;
    &lt;dependency&gt;
      &lt;groupId&gt;myApp&lt;/groupId&gt;
      &lt;artifactId&gt;myApp_sharedresources&lt;/artifactId&gt;
      &lt;version&gt;1.0&lt;/version&gt;
    &lt;/dependency&gt;
  &lt;/dependencies&gt;
  </code></pre>
  
  <p>I've tried many combinations of <code>&lt;includes&gt;</code> and <code>&lt;excludes&gt;</code> but all so far have had no impact.</p>
  
  <p>So, are </p>
  
  <pre><code>&lt;includes&gt;&lt;/includes&gt;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>&lt;excludes&gt;&lt;/excludes&gt;
  </code></pre>
  
  <p>valid elements for a maven-remote-resources-plugin configuration, and how do I use them?
  I can reasonably seperate the resources out into seperate maven modules, but that could create a large number of single file maven modules and add a lot of extra xml so I'd like to avoid it if possible.</p>
  
  <p>I'd really rather not start pawing through the plugin source code, but that is the next step.</p>