eclipse maven ClassNotFoundException
<p>I have a simple eclipse maven project with the following class:</p>

<pre><code>package org.cru.dependencies;
import com.jcraft.jsch.JSch;
public class Dependencies {
    public static void main(String[] arg){
        JSch jsch = new JSch();
    }
}
</code></pre>

<p>and the following pom.xml:</p>

<pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  &lt;groupId&gt;dependencies&lt;/groupId&gt;
  &lt;artifactId&gt;dependencies&lt;/artifactId&gt;
  &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
  &lt;build&gt;
    &lt;plugins&gt;
      &lt;plugin&gt;
        &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
        &lt;version&gt;3.5.1&lt;/version&gt;
        &lt;configuration&gt;
          &lt;source&gt;1.8&lt;/source&gt;
          &lt;target&gt;1.8&lt;/target&gt;
        &lt;/configuration&gt;
      &lt;/plugin&gt;
    &lt;/plugins&gt;
  &lt;/build&gt;
  &lt;dependencies&gt;
    &lt;!-- https://mvnrepository.com/artifact/com.jcraft/jsch --&gt;
    &lt;dependency&gt;
        &lt;groupId&gt;com.jcraft&lt;/groupId&gt;
        &lt;artifactId&gt;jsch&lt;/artifactId&gt;
        &lt;version&gt;0.1.54&lt;/version&gt;
    &lt;/dependency&gt;
  &lt;/dependencies&gt;
&lt;/project&gt;
</code></pre>

<p>I can right-click on the JSch in new JSch() and select Open Declared and the source for JSch opens properly. However, when I run the main class I get 
Exception in thread "main" java.lang.NoClassDefFoundError: com/jcraft/jsch/JSch</p>

<p>Even if I create a lib folder and place the jsch jar in the lib folder and add the jar to the build path I get the same error. Can someone suggest a solution?</p>