title: Maven add jars through systemPath/system but not added to war or anywhere else
body: <p>I want to add a jar file through the systemPath  from the local file-system relative to my project directory structure, not on a remote repository.  I added the dependency declaration but maven doesn't do anything else with it.</p>
  
  <p>In the declaration below, I want the jar file copied to my target web-inf/lib directory and also jarred as part of the war file.  At present, that doesn't happen.  How would I get the jar file copied to my war file?</p>
  
  <p>This is the output from debug maven mode:</p>
  
  <pre><code>DEBUG] cglib:cglib-nodep:jar:2.2:test (setting scope to: compile)^M
  DEBUG] Retrieving parent-POM: org.objenesis:objenesis-parent:pom:1.2 for project: null:objenesis:ja
  DEBUG]   org.objenesis:objenesis:jar:1.2:test (selected for test)^M
  DEBUG]   org.javap.web:testRunWrapper:jar:1.0.0:system (selected for system)^M
  DEBUG] Plugin dependencies for:
  ...
  
  
  &lt;dependency&gt;
      &lt;groupId&gt;org.javap.web&lt;/groupId&gt;
      &lt;artifactId&gt;testRunWrapper&lt;/artifactId&gt;
      &lt;version&gt;1.0&lt;/version&gt;
      &lt;scope&gt;system&lt;/scope&gt;
      &lt;systemPath&gt;${basedir}/lib/testRunWrapper.jar&lt;/systemPath&gt;
  &lt;/dependency&gt;
  &lt;plugin&gt;
      &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
      &lt;configuration&gt;                 
          &lt;webResources&gt;
              &lt;resource&gt;
                  &lt;directory&gt;WebContent&lt;/directory&gt;
              &lt;/resource&gt;
          &lt;/webResources&gt;
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>