title: Why does Maven shade plugin remove module-info.class?
body: <p>I try to use <code>maven-shade-plugin</code> for a modular jar:</p>
  
  <pre><code>&lt;plugin&gt;
      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
      &lt;artifactId&gt;maven-shade-plugin&lt;/artifactId&gt;
      &lt;version&gt;3.1.1&lt;/version&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;/execution&gt;
      &lt;/executions&gt;
      &lt;configuration&gt;
          &lt;minimizeJar&gt;true&lt;/minimizeJar&gt;
          &lt;artifactSet&gt;
              &lt;includes&gt;
                  &lt;include&gt;javax.xml.bind:jaxb-api&lt;/include&gt;
                  &lt;include&gt;com.sun.xml.bind:jaxb-impl&lt;/include&gt;
              &lt;/includes&gt;
          &lt;/artifactSet&gt;
          &lt;relocations&gt;
              &lt;relocation&gt;
                  &lt;pattern&gt;javax.xml.bind&lt;/pattern&gt;
                  &lt;shadedPattern&gt;org.update4j.javax.xml.bind&lt;/shadedPattern&gt;
              &lt;/relocation&gt;
              &lt;relocation&gt;
                  &lt;pattern&gt;com.sun.xml.bind&lt;/pattern&gt;
                  &lt;shadedPattern&gt;org.update4j.com.sun.xml.bind&lt;/shadedPattern&gt;
              &lt;/relocation&gt;
          &lt;/relocations&gt;
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>But Maven will remove my <code>module-info.class</code> from the shaded jar, with a warning:</p>
  
  <pre><code>[WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
  </code></pre>
  
  <p>How can I configure it to leave it?</p>
  
  <p>EDIT: the warning actually happens when it removes the shaded jar's module descriptor, not my own.</p>