title: How to exclude a package from a dependency jar(using maven) present in a web project?
body: <p>I have below dependency in my pom.xml. </p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.apache.phoenix&lt;/groupId&gt;
      &lt;artifactId&gt;phoenix-server-client&lt;/artifactId&gt;
      &lt;version&gt;4.7.0-HBase-1.1&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>The above is for phoenix query server interacaction
          This dependency has org.apache.calcite:calcite-avatica:1.6.0 transitive dependency. The calcite-avatica dependency has jackson-databind(2.1.1) one of its transitive  dependency. So jackson-databind(version: 2.1.1) dependency should be included in classpath of my project. But instead of that, all of the classes in the jackson-databind(version: 2.1.1) are included in calcite-avatica jar. I  have declared jackson-databind( version: 2.7.2) as direct dependency in my pom.xml. 
      I can exclude the jackson-databind(2.1.1) through  tag. .    &lt;  
          org.apache.phoenix
          phoenix-server-client
          4.7.0-HBase-1.1
          
                
                     com.fasterxml./*
                     jackson-databind
                   
              
          </p>
  
  <p>But it is not getting excluded since it has been bundled in calcite-avatica:1.6.0 jar. Is there any solution for that. I have tried maven shaded plugin. but in vain.</p>