title: Exclude Classes from Being Included in Shaded Jar
body: <p>I'm trying to exclude certain classes from being included in a shaded jar.</p>
  
  <p>I have tried several different configurations but for some reason the jars are still being included in my jar. Here is the plugin setup:</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;2.4.2&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;filters&gt;
              &lt;filter&gt;
                  &lt;artifact&gt;*:*&lt;/artifact&gt;
                  &lt;excludes&gt;
                      &lt;exclude&gt;META-INF/*.SF&lt;/exclude&gt;
                      &lt;exclude&gt;META-INF/*.DSA&lt;/exclude&gt;
                      &lt;exclude&gt;META-INF/*.RSA&lt;/exclude&gt;
                      &lt;exclude&gt;java/*&lt;/exclude&gt;
                  &lt;/excludes&gt;
              &lt;/filter&gt;
          &lt;/filters&gt;
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>I have also tried the following patterns:</p>
  
  <pre><code>&lt;exclude&gt;java.*&lt;/exclude&gt;
  &lt;exclude&gt;java.util.concurrent.ConcurrentHashMap&lt;/exclude&gt;
  &lt;exclude&gt;java/util/concurrent/ConcurrentHashMap&lt;/exclude&gt;
  </code></pre>
  
  <p>None of which have actually excluded the file from my jar. How can I exclude this class from my jar?</p>