title: Maven: How to include my external jar into build executable jar
body: <p>I am writing Spring app and I have two external jars there. It works in IDE, but when I building the executable jar with maven it fails with error java.lang.NoClassDefFoundError: to my external jars. How can I solve this? My dependency in pom file is:</p>
  <pre><code>&lt;dependency&gt;
              &lt;groupId&gt;com.myapp.myappawsprovider&lt;/groupId&gt;
              &lt;artifactId&gt;MyAppProvider&lt;/artifactId&gt;
              &lt;version&gt;1.0.0&lt;/version&gt;
              &lt;scope&gt;system&lt;/scope&gt;
              &lt;systemPath&gt;/Users/Projects/Java/MyApp/MyAppProvider/target/MyAppProvider Provider-1.0.0.jar&lt;/systemPath&gt;
          &lt;/dependency&gt;
  </code></pre>
  <p>I build it just with men package.</p>