title: Maven Local Dependency
body: <p>I have a jar included under src/libs. This is necessary because when I run my application on the intended server it will not be able to download external dependencies. I am receiving the following error when building from the command line: NoClassDefFoundError. The dependency in my pom:</p>
  
  <pre><code>&lt;dependency&gt;
       &lt;groupId&gt;jFuzzyLogic_core&lt;/groupId&gt;
       &lt;artifactId&gt;jFuzzyLogic_core&lt;/artifactId&gt;
       &lt;scope&gt;system&lt;/scope&gt;
       &lt;version&gt;2.0.7&lt;/version&gt;
       &lt;systemPath&gt;${basedir}\src\libs\jFuzzyLogic_core.jar&lt;/systemPath&gt;
    &lt;/dependency&gt;
  </code></pre>
  
  <p>I have read conflicting posts on whether or not this is correct and I can not figure out what to do.</p>
  
  <p>The command line as requested:</p>
  
  <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: net/sourceforge/jFuzz
  yLogic/FIS
          at noobbot.Main.&lt;init&gt;(Main.java:41)
          at noobbot.Main.main(Main.java:30)
  Caused by: java.lang.ClassNotFoundException: net.sourceforge.jFuzzyLogic.FIS
          at java.net.URLClassLoader$1.run(Unknown Source)
          at java.net.URLClassLoader$1.run(Unknown Source)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.net.URLClassLoader.findClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          ... 2 more
  </code></pre>
  
  <p>Also relevant, </p>
  
  <pre><code>[WARNING] 'dependencies.dependency.systemPath' for jFuzzyLogic_core:jFuzzyLogic_
  core:jar should not point at files within the project directory, ${basedir}\src\
  libs\jFuzzyLogic_core.jar will be unresolvable by dependent projects @ line 24,
  column 22
  </code></pre>
  
  <p>can anyone else suggest how to do this if this is in fact not the correct way?</p>