title: Build failure when adding jar file directly in java build path in maven based project and not adding its entry in pom file?
body: <p>I have a maven based project. And I have few dependencies that are our custom dependencies.</p>
  <p>Now till now, if I add these dependencies in java build path and make their entry in pom file using</p>
  <pre><code>   &lt;dependency&gt;
          &lt;groupId&gt;abc&lt;/groupId&gt;
          &lt;artifactId&gt;abc&lt;/artifactId&gt;
          &lt;scope&gt;system&lt;/scope&gt;
          &lt;version&gt;1.0&lt;/version&gt;
          &lt;systemPath&gt;${basedir}\src\lib\abc.jar&lt;/systemPath&gt;
      &lt;/dependency&gt;
  </code></pre>
  <p>And make project build then it works fine.</p>
  <p>But as I tried by removing its entry in pom file, as I have already added in java build path build fails with error's
  <strong>package com.abc does not exist</strong></p>
  <p>I want to know why it is failing as by adding entries in java build path in dynamic java project (not maven), it works fine and build gets created.</p>
  <p>I have dependency like this
  <a href="https://i.stack.imgur.com/2UNoQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2UNoQ.png" alt="enter image description here" /></a></p>