title: Can the maven-shade-plugin create a shaded pom for a module with packaging type pom?
body: <p>I have a multi module maven project with a seperate xyz-distribution module that contains multiple assemblies. This module depends on all artifacts that go into the assemblies. </p>
  
  <p>In my parent pom I have disabled deployment per default as I want only my distribution assemblies deployed. </p>
  
  <p>Since there will be no individual artifacts in my production repository (only the distribution assemblies), the deployed distribution pom should also not list any dependencies. I tried to achieve this goal by including the maven-shade-plugin in my configuration. </p>
  
  <p>But calling 'mvn install' always yields the following error</p>
  
  <pre><code>[INFO] Replacing original artifact with shaded artifact.
  [INFO] Replacing null with C:\...\xyz-distribution\target\xyz-distribution-1.0-shaded.pom
  [INFO] ------------------------------------------------------------------------
  [ERROR] BUILD ERROR
  [INFO] ------------------------------------------------------------------------
  [INFO] Error creating shaded jar: null
  </code></pre>
  
  <p>Any ideas how to solve my problem?</p>
  
  <p>parent pom (simplified): </p>
  
  <pre><code>&lt;project 
      xmlns="http://maven.apache.org/POM/4.0.0" 
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
                          http://maven.apache.org/maven-v4_0_0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
    &lt;groupId&gt;x.y.z&lt;/groupId&gt;
    &lt;artifactId&gt;xyz-parent&lt;/artifactId&gt;
    &lt;version&gt;1.0&lt;/version&gt;
    &lt;packaging&gt;pom&lt;/packaging&gt;
  
    &lt;build&gt;
       &lt;plugins&gt;
         &lt;plugin&gt;
           &lt;inherited&gt;true&lt;/inherited&gt;
           &lt;artifactId&gt;maven-deploy-plugin&lt;/artifactId&gt;
           &lt;configuration&gt;
             &lt;skip&gt;true&lt;/skip&gt;
           &lt;/configuration&gt;
         &lt;/plugin&gt;
       &lt;/plugins&gt;
     &lt;/build&gt;
   &lt;/project&gt;
  </code></pre>
  
  <p>distribution pom:</p>
  
  <pre><code>&lt;project 
      xmlns="http://maven.apache.org/POM/4.0.0" 
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
                          http://maven.apache.org/maven-v4_0_0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;parent&gt;
      &lt;groupId&gt;x.y.z&lt;/groupId&gt;
      &lt;artifactId&gt;xyz-parent&lt;/artifactId&gt;
      &lt;version&gt;1.0&lt;/version&gt;
    &lt;/parent&gt;
    &lt;artifactId&gt;xyz-distribution&lt;/artifactId&gt;
    &lt;packaging&gt;pom&lt;/packaging&gt;
  
    &lt;dependencies&gt;
      &lt;!-- assembly descriptors will reference this dependencies --&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;${project.groupId}&lt;/groupId&gt;
        &lt;artifactId&gt;xyz-api&lt;/artifactId&gt;
        &lt;version&gt;${project.version}&lt;/version&gt;
      &lt;/dependency&gt;
    &lt;/dependencies&gt;
  
    &lt;build&gt;
      &lt;plugins&gt;
        &lt;plugin&gt;
          &lt;artifactId&gt;maven-assembly-plugin&lt;/artifactId&gt;
          &lt;executions&gt;
            &lt;execution&gt;
              &lt;id&gt;distro-assembly&lt;/id&gt;
              &lt;phase&gt;package&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;single&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                &lt;descriptors&gt;
                  &lt;descriptor&gt;src/assemble/bin.xml&lt;/descriptor&gt;
                  &lt;descriptor&gt;src/assemble/doc.xml&lt;/descriptor&gt;
                  &lt;descriptor&gt;src/assemble/src.xml&lt;/descriptor&gt;
                &lt;/descriptors&gt;
              &lt;/configuration&gt;
            &lt;/execution&gt;
          &lt;/executions&gt;
        &lt;/plugin&gt;
  
        &lt;plugin&gt;
          &lt;artifactId&gt;maven-shade-plugin&lt;/artifactId&gt;
          &lt;executions&gt;
            &lt;execution&gt;
              &lt;phase&gt;package&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;shade&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                &lt;artifactSet&gt;
                  &lt;includes&gt;
                    &lt;include&gt;*&lt;/include&gt;
                  &lt;/includes&gt;
                &lt;/artifactSet&gt;
              &lt;/configuration&gt;
            &lt;/execution&gt;
          &lt;/executions&gt;
        &lt;/plugin&gt;
  
        &lt;plugin&gt;
          &lt;artifactId&gt;maven-deploy-plugin&lt;/artifactId&gt;
          &lt;configuration&gt;
            &lt;skip&gt;false&lt;/skip&gt;
          &lt;/configuration&gt;
        &lt;/plugin&gt;
      &lt;/plugins&gt;
    &lt;/build&gt;
  
  &lt;/project&gt;
  </code></pre>