title: maven assembly ignores parent dependencies
body: <p>My assembly descriptor applies the includes and excludes correctly when the dependencies are included in the pom file directly.</p>
  
  <p>However when I put the dependencies in the parent pom file the assembly:directory goal reports that the includes and excludes haven't been triggered.</p>
  
  <p>Do you know why maven-assembly-plugin ignores parent dependencies? How can I fix it?</p>
  
  <p>Here are the maven and assembly descriptors:</p>
  
  <p><strong>Assembly descriptor:</strong></p>
  
  <pre><code>&lt;assembly&gt;
    &lt;id&gt;distribution&lt;/id&gt;
    &lt;formats&gt;
      &lt;format&gt;zip&lt;/format&gt;
    &lt;/formats&gt;
    &lt;fileSets&gt;
      &lt;fileSet&gt;
        &lt;includes&gt;
          &lt;include&gt;readme.txt&lt;/include&gt;
        &lt;/includes&gt;
      &lt;/fileSet&gt;
      &lt;fileSet&gt;
        &lt;directory&gt;target&lt;/directory&gt;
        &lt;outputDirectory&gt;/lib&lt;/outputDirectory&gt;
        &lt;includes&gt;
          &lt;include&gt;*.jar&lt;/include&gt;
        &lt;/includes&gt;
      &lt;/fileSet&gt;
    &lt;/fileSets&gt;
    &lt;dependencySets&gt;
      &lt;dependencySet&gt;
        &lt;outputDirectory&gt;/lib&lt;/outputDirectory&gt;
        &lt;unpack&gt;false&lt;/unpack&gt;
        &lt;scope&gt;runtime&lt;/scope&gt;
        &lt;excludes&gt;
          &lt;exclude&gt;org.tanukisoftware:wrapper:exe:3.3.5&lt;/exclude&gt;
        &lt;/excludes&gt;
      &lt;/dependencySet&gt;
      &lt;dependencySet&gt;
        &lt;outputDirectory&gt;/bin&lt;/outputDirectory&gt;
        &lt;unpack&gt;false&lt;/unpack&gt;
        &lt;scope&gt;runtime&lt;/scope&gt;
        &lt;includes&gt;
          &lt;include&gt;org.tanukisoftware:wrapper:exe:3.3.5&lt;/include&gt;
        &lt;/includes&gt;
      &lt;/dependencySet&gt;
    &lt;/dependencySets&gt;
  &lt;/assembly&gt;
  </code></pre>
  
  <p><strong>Child POM assembly plugin definition:</strong></p>
  
  <pre><code>    &lt;plugin&gt;
          &lt;artifactId&gt;maven-assembly-plugin&lt;/artifactId&gt;
          &lt;configuration&gt;
              &lt;ignoreDirFormatExtensions&gt;true&lt;/ignoreDirFormatExtensions&gt;
              &lt;descriptors&gt;
                  &lt;descriptor&gt;assembly.xml&lt;/descriptor&gt;
              &lt;/descriptors&gt;
          &lt;/configuration&gt;
          &lt;executions&gt;
              &lt;execution&gt;
                  &lt;id&gt;make-assembly&lt;/id&gt;
                  &lt;phase&gt;package&lt;/phase&gt;      
                  &lt;goals&gt;
                      &lt;goal&gt;directory&lt;/goal&gt;
                  &lt;/goals&gt;
              &lt;/execution&gt;
          &lt;/executions&gt;
      &lt;/plugin&gt;
  </code></pre>
  
  <p><strong>Parent POM dependencies:</strong></p>
  
  <pre><code>&lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.tanukisoftware&lt;/groupId&gt;
          &lt;artifactId&gt;wrapper&lt;/artifactId&gt;
          &lt;version&gt;3.3.5&lt;/version&gt;
          &lt;type&gt;dll&lt;/type&gt;
          &lt;scope&gt;runtime&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.tanukisoftware&lt;/groupId&gt;
          &lt;artifactId&gt;wrapper&lt;/artifactId&gt;
          &lt;version&gt;3.3.5&lt;/version&gt;
          &lt;type&gt;exe&lt;/type&gt;
          &lt;scope&gt;runtime&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.tanukisoftware&lt;/groupId&gt;
          &lt;artifactId&gt;wrapper&lt;/artifactId&gt;
          &lt;version&gt;3.3.5&lt;/version&gt;
          &lt;scope&gt;runtime&lt;/scope&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  </code></pre>
  
  <p><strong>Warnings in the build report:</strong></p>
  
  <pre><code>[assembly:directory {execution: make-assembly}]
  Reading assembly descriptor: assembly.xml
  Processing DependencySet (output=/lib)
  [WARNING] The following patterns were never triggered in this artifact exclusion filter:
  o  'org.tanukisoftware:wrapper:exe:3.3.5'
  
  Processing DependencySet (output=/bin)
  [WARNING] The following patterns were never triggered in this artifact inclusion filter:
  o  'org.tanukisoftware:wrapper:exe:3.3.5'
  </code></pre>