title: how to add my external jar file to class path
body: <p>I am new to maven environment, need some ones help.
  Added my external jar file (directoryhelper.jar) in lib folder as below in pom.xml   </p>
  
  <pre><code>&lt;dependency&gt;
        &lt;groupId&gt;com.test.directoryhelper&lt;/groupId&gt;
        &lt;artifactId&gt;DirectoryHelper&lt;/artifactId&gt;
        &lt;version&gt;1.0&lt;/version&gt;
        &lt;scope&gt;system&lt;/scope&gt;
        &lt;systemPath&gt;${basedir}/lib/directoryhelper.jar&lt;/systemPath&gt;      
  &lt;/dependency&gt;
  </code></pre>
  
  <p>compilation is successful, but during run time I am getting 
  java.lang.NoClassDefFoundError.</p>
  
  <p>how to add the directoryhelper.jar to class path. </p>