title: maven build including extra jars in manifest file
body: <p>I'm using Maven to build jars for my application. When I create jar using maven build on Netbeans it creates the jar as expected and it adds all the jars in manifest file those are present in my POM file but along with those jars it also adds some extra jars to POM file as well that are I think related to dependencies I have used in POM (Not sure if this is the case). when these extra jars including my manifest file these are creating problem for me and when I remove these extra jars from the manifest file my jars work fine. </p>
  
  <p>The other solution for this issue is that I add these extra jars to the server, which I don't want to do. </p>
  
  <p>Here is plugin part of my POM file that is populating details in manifest. </p>
  
  <pre><code>&lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-jar-plugin&lt;/artifactId&gt;
              &lt;configuration&gt;
                  &lt;archive&gt;
                      &lt;manifest&gt;
                          &lt;addDefaultImplementationEntries&gt;true&lt;/addDefaultImplementationEntries&gt;
                          &lt;addClasspath&gt;true&lt;/addClasspath&gt;
                          &lt;classpathPrefix&gt;./lib/&lt;/classpathPrefix&gt;
                          &lt;mainClass&gt;com.contingent.wug.SitePerformanceAnalysis&lt;/mainClass&gt;
                      &lt;/manifest&gt;
                  &lt;/archive&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
  </code></pre>
  
  <p>I'm sure im missing any property that will help me to avoid adding these extra jars but not sure what is that. Thanks in advance. </p>
  
  <p><strong>EDITED</strong> </p>
  
  <p>Here is the only dependency of my POM file. 
  <a href="https://i.stack.imgur.com/gGNML.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gGNML.png" alt="enter image description here"></a></p>
  
  <p>but when I see the dependencies folder of my project here is the list of dependencies I can see where I'm only expecting one dependency.</p>
  
  <p><a href="https://i.stack.imgur.com/AH8uT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AH8uT.png" alt="enter image description here"></a></p>
  
  <p>its OK if I am having these number of jars to project but I don't want to add all of them to manifest file. </p>