title: Maven not adding all dependencies to jar
body: <p>I've a simple program build in IntelliJ and using maven that uses the dependency io.netty. I've added to my POM file:</p>
  
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;io.netty&lt;/groupId&gt;
          &lt;artifactId&gt;netty-all&lt;/artifactId&gt;
          &lt;version&gt;4.1.0.Beta1&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>In order to compile and get a jar file I usually do:</p>
  
  <ul>
  <li>Clean</li>
  <li>Compile</li>
  <li>Package</li>
  </ul>
  
  <p>However I noticed that the dependency is not added to the jar, neither existing in the target folder (Or in any of it's sub folders) or added to the resources folder like usually happens.</p>
  
  <p>In order to have the io.netty library to be added to the jar I have tried:</p>
  
  <ul>
  <li>Setting the scope to provided and to compile.</li>
  <li>Re-importing the pom file.</li>
  <li>Deleting io.netty folder in the .m2/repository/ folder.</li>
  </ul>
  
  <p>I have several other libraries linked including:</p>
  
  <ul>
  <li>mysql-connector-java</li>
  <li>slf4j-simple</li>
  <li>trove4j</li>
  </ul>
  
  <p>Thanks for reading.</p>