title: The maven assembly plugin moduleset sources instructions are not including any files and not matching the included modules
body: <p>I have a multi-module maven project, and I'm trying to get the moduleset sources portion of the assembly plugin to work.</p>
  
  <p>I have modules "<strong>module_parent</strong>", "<strong>module_a</strong>", and "<strong>module_assembly</strong>". </p>
  
  <p><strong>module_a</strong> and <strong>module_assembly</strong> are children of <strong>module_parent</strong>.  </p>
  
  <p><strong>module_assembly</strong> has a declared pom dependency on <strong>module_a</strong>.</p>
  
  <p><strong>module_assmebly</strong> has the assembly plugin, with the assembly.xml looking like:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0"?&gt;
  &lt;assembly&gt;
    &lt;id&gt;bin&lt;/id&gt;
    &lt;formats&gt;
      &lt;format&gt;zip&lt;/format&gt;
    &lt;/formats&gt;
    &lt;includeBaseDirectory&gt;false&lt;/includeBaseDirectory&gt;
    &lt;moduleSets&gt;
      &lt;moduleSet&gt;
        &lt;useAllReactorProjects&gt;true&lt;/useAllReactorProjects&gt;
        &lt;includes&gt;
          &lt;include&gt;com.mystuff:module_a&lt;/include&gt;
        &lt;/includes&gt;
        &lt;sources&gt;
          &lt;fileSets&gt;
            &lt;fileSet&gt;
              &lt;outputDirectory&gt;/&lt;/outputDirectory&gt;
              &lt;excludes&gt;
                &lt;exclude&gt;**/target/**&lt;/exclude&gt;
              &lt;/excludes&gt;
              &lt;directory&gt;/&lt;/directory&gt;
            &lt;/fileSet&gt;
          &lt;/fileSets&gt;
        &lt;/sources&gt;
      &lt;/moduleSet&gt;
    &lt;/moduleSets&gt;
  &lt;/assembly&gt; &lt;!-- --&gt;
  </code></pre>
  
  <p><strong>I have an explicit dependency in module_assembly for module_a.  The dependency in module_assembly's pom looks like:</strong></p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.mystuff&lt;/groupId&gt;
          &lt;artifactId&gt;module_a&lt;/artifactId&gt;
          &lt;version&gt;1.0&lt;/version&gt;
          &lt;type&gt;pom&lt;/type&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  </code></pre>
  
  <p>The error I get from mvn package with debug turned on is:</p>
  
  <pre><code>[DEBUG] All known ContainerDescritporHandler components: [metaInf-services, plexus, metaInf-spring, file-aggregator]
  [DEBUG] No dependency sets specified.
  [WARNING] The following patterns were never triggered in this artifact inclusion filter:
  o  'com.mystuff:module_a'
  
  [DEBUG] Cannot find ArtifactResolver with hint: project-cache-aware
  org.codehaus.plexus.component.repository.exception.ComponentLookupException: java.util.NoSuchElementException
        role: org.apache.maven.artifact.resolver.ArtifactResolver
    roleHint: project-cache-aware
          at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:257)
          at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:233)
          at
    &lt;snip&gt;
          at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
          at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
  Caused by: java.util.NoSuchElementException
          at java.util.Collections$EmptyIterator.next(Collections.java:3006)
          at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:253)
          ... 43 more
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  &lt;snip&gt;
  [ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2:single (make-assembly) on project apm-server-distribution: Failed to create assembly: Error creating assembly archive bin: You must set at least one file. -&gt; [Help 1]
  org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2:single (make-assembly) on project apm-server-distribution: Failed to create assembly: Error creating assembly archive bin: You must set at least one file.
  </code></pre>
  
  <p>I think the main problem is this warning line:</p>
  
  <pre><code>[WARNING] The following patterns were never triggered in this artifact inclusion filter:
      o  'com.mystuff:module_a'
  </code></pre>
  
  <p>How do I correct this?</p>