title: Maven modules are trying to use parent dependencies
body: <p>I have a maven project where the parent module has a lib directory containing various jars that are necessary for compilation, but aren't included in the final product. When I try to get the children modules to build it fails. It says "The following artifacts could not be resolved" then eventually says "Could not find artifact local_dependency at C:\path\to\project\modules\module_name\lib\local_dependency.jar". </p>
  
  <p>The children modules do not depend on the libraries that the parent uses, however it still wants to include them. Is there an option I need to set to prevent this?</p>
  
  <p>Parent Pom snippet:</p>
  
  <pre><code>&lt;properties&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
      &lt;currentVersion&gt;1.0.0&lt;/currentVersion&gt;
  &lt;/properties&gt;
  
  &lt;groupId&gt;com.project&lt;/groupId&gt;
  &lt;artifactId&gt;project_artifact&lt;/artifactId&gt;
  &lt;packaging&gt;pom&lt;/packaging&gt;
  &lt;version&gt;${currentVersion}&lt;/version&gt;
  
  &lt;modules&gt;
      &lt;module&gt;modules/module_name&lt;/module&gt;
  &lt;/modules&gt;
  
  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;group.id&lt;/groupId&gt;
          &lt;artifactId&gt;local_dependency&lt;/artifactId&gt;
          &lt;version&gt;1.0&lt;/version&gt;
          &lt;systemPath&gt;${basedir}/lib/local_dependency.jar&lt;/systemPath&gt;
          &lt;scope&gt;system&lt;/scope&gt;
          &lt;optional&gt;true&lt;/optional&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  </code></pre>
  
  <p>Child pom snippet:</p>
  
  <pre><code>&lt;parent&gt;
      &lt;groupId&gt;com.project&lt;/groupId&gt;
      &lt;artifactId&gt;project_artifact&lt;/artifactId&gt;
      &lt;version&gt;${currentVersion}&lt;/version&gt;
      &lt;relativePath&gt;../../&lt;/relativePath&gt;
  &lt;/parent&gt;
  
  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;net.some.dependency&lt;/groupId&gt;
          &lt;artifactId&gt;artifact_name&lt;/artifactId&gt;
          &lt;version&gt;1.0.0&lt;/version&gt;
          &lt;type&gt;jar&lt;/type&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.project&lt;/groupId&gt; &lt;!-- The child depends on the parent for the parent's API--&gt;
          &lt;artifactId&gt;project_artifact&lt;/artifactId&gt;
          &lt;version&gt;${currentVersion}&lt;/version&gt;
          &lt;type&gt;jar&lt;/type&gt;
      &lt;/depdencency&gt;
  &lt;/dependencies&gt;
  </code></pre>
  
  <p>So from this, the child pom will attempt to include group.id:local_dependency from project_base/modules/module_name/lib/local_dependency.jar but it doesn't exist and doesn't need to exist.</p>