title: maven not packaging dependencies in jar
body: <p><strong>The problem</strong></p>
  
  <p>I have a nested multiple module (correct terminology?) Maven project and the dependencies for one of the modules are not getting packaged with the jar when I <code>mvn clean package</code></p>
  
  <p>The project is actually a fork of something else that I didn't write, and somewhere along the line I broke the build process, but I can't seem to find out what I did.</p>
  
  <p>The project structure is as follows:</p>
  
  <ul>
  <li>root
  <ul>
  <li>distribution (parent = root)</li>
  <li>child1 (parent = root) <strong>&lt;-- dependencies not getting packaged for this one</strong></li>
  <li>child2 (parent = root)</li>
  </ul></li>
  </ul>
  
  <p>The poms are as follows (sorry for posting them all here, but I'm really not sure where to look):</p>
  
  <p><strong>root</strong></p>
  
  <pre><code>&lt;groupId&gt;com.something&lt;/groupId&gt;
  &lt;artifactId&gt;root&lt;/artifactId&gt;
  &lt;packaging&gt;pom&lt;/packaging&gt;
  
  &lt;modules&gt;
      &lt;module&gt;child1&lt;/module&gt;
      &lt;module&gt;child2&lt;/module&gt;
      &lt;module&gt;distribution&lt;/module&gt;
  &lt;/modules&gt;
  
  &lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p><strong>distribution</strong></p>
  
  <pre><code>&lt;parent&gt;
      &lt;groupId&gt;com.something&lt;/groupId&gt;
      &lt;artifactId&gt;root&lt;/artifactId&gt;
  &lt;/parent&gt;
  
  &lt;artifactId&gt;distribution&lt;/artifactId&gt;
  &lt;packaging&gt;pom&lt;/packaging&gt;
  
  &lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-assembly-plugin&lt;/artifactId&gt;
              &lt;configuration&gt;
                  &lt;descriptors
                      &lt;descriptor&gt;src/main/assembly/distribution.xml&lt;/descriptor&gt;
                  &lt;/descriptors&gt;
                  &lt;appendAssemblyId&gt;false&lt;/appendAssemblyId&gt;
              &lt;/configuration&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;phase&gt;package&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;single&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p><strong>child1</strong></p>
  
  <pre><code>&lt;parent&gt;
      &lt;groupId&gt;com.something&lt;/groupId&gt;
      &lt;artifactId&gt;root&lt;/artifactId&gt;
  &lt;/parent&gt;
  
  &lt;artifactId&gt;child1&lt;/artifactId&gt;
  &lt;packaging&gt;jar&lt;/packaging&gt;
  
  &lt;dependencies&gt;
      many dependencies here...
  &lt;/dependencies&gt;
  </code></pre>
  
  <p><strong>child2</strong></p>
  
  <pre><code>&lt;parent&gt;
      &lt;groupId&gt;com.something&lt;/groupId&gt;
      &lt;artifactId&gt;root&lt;/artifactId&gt;
  &lt;/parent&gt;
  
  &lt;artifactId&gt;child2&lt;/artifactId&gt;
  &lt;packaging&gt;jar&lt;/packaging&gt;
  
  &lt;dependencies&gt;
      many dependencies here...
  &lt;/dependencies&gt;
  
  &lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-assembly-plugin&lt;/artifactId&gt;
              &lt;configuration&gt;
                  &lt;descriptorRefs&gt;
                      &lt;descriptorRef&gt;jar-with-dependencies&lt;/descriptorRef&gt;
                  &lt;/descriptorRefs&gt;
                  &lt;appendAssemblyId&gt;false&lt;/appendAssemblyId&gt;
              &lt;/configuration&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;phase&gt;package&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;single&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p><strong>distribution.xml</strong></p>
  
  <pre><code>&lt;id&gt;package&lt;/id&gt;
  &lt;formats&gt;
      &lt;format&gt;tar.gz&lt;/format&gt;
  &lt;/formats&gt;
  &lt;includeBaseDirectory&gt;true&lt;/includeBaseDirectory&gt;
  &lt;fileSets&gt;
      &lt;fileSet&gt;
          &lt;directory&gt;..&lt;/directory&gt;
          &lt;outputDirectory&gt;.&lt;/outputDirectory&gt;
          &lt;fileMode&gt;0644&lt;/fileMode&gt;
          &lt;includes&gt;
              &lt;include&gt;README&lt;/include&gt;
              &lt;include&gt;CHANGELOG&lt;/include&gt;
              &lt;include&gt;LICENSE.txt&lt;/include&gt;
              &lt;include&gt;NOTICE.txt&lt;/include&gt;
          &lt;/includes&gt;
      &lt;/fileSet&gt;
      &lt;fileSet&gt;
          &lt;directory&gt;../bin&lt;/directory&gt;
          &lt;outputDirectory&gt;bin&lt;/outputDirectory&gt;
          &lt;fileMode&gt;0755&lt;/fileMode&gt;
      &lt;/fileSet&gt;
      &lt;fileSet&gt;
          &lt;directory&gt;../workloads&lt;/directory&gt;
          &lt;outputDirectory&gt;workloads&lt;/outputDirectory&gt;
          &lt;fileMode&gt;0644&lt;/fileMode&gt;
      &lt;/fileSet&gt;
  &lt;/fileSets&gt;
  &lt;moduleSets&gt;
      &lt;moduleSet&gt;
          &lt;useAllReactorProjects&gt;true&lt;/useAllReactorProjects&gt;
          &lt;includeSubModules&gt;true&lt;/includeSubModules&gt;
          &lt;sources&gt;
              &lt;includeModuleDirectory&gt;true&lt;/includeModuleDirectory&gt;
  
              &lt;fileSets&gt;
                  &lt;fileSet&gt;
                      &lt;directory&gt;.&lt;/directory&gt;
                      &lt;fileMode&gt;0644&lt;/fileMode&gt;
                      &lt;includes&gt;
                          &lt;include&gt;README&lt;/include&gt;
                      &lt;/includes&gt;
                  &lt;/fileSet&gt;
                  &lt;fileSet&gt;
                      &lt;directory&gt;src/main/conf&lt;/directory&gt;
                      &lt;outputDirectory&gt;conf&lt;/outputDirectory&gt;
                      &lt;fileMode&gt;0644&lt;/fileMode&gt;
                  &lt;/fileSet&gt;
                  &lt;fileSet&gt;
                      &lt;outputDirectory&gt;lib&lt;/outputDirectory&gt;
                      &lt;directory&gt;target&lt;/directory&gt;
                      &lt;includes&gt;
                          &lt;include&gt;*.jar&lt;/include&gt;
                      &lt;/includes&gt;
                      &lt;fileMode&gt;0644&lt;/fileMode&gt;
                  &lt;/fileSet&gt;
              &lt;/fileSets&gt;
          &lt;/sources&gt;
      &lt;/moduleSet&gt;
  &lt;/moduleSets&gt;
  </code></pre>
  
  <p><strong>Note: the code is on github, I'll gladly provide a link to the repository if someone has the time and desire to look at the real project!</strong></p>