title: How to include system dependencies in war built using maven
body: <p>I've searched on internet for quite some time and I'm unable to figure out how to configure the maven-war plugin or something alike so that the system dependencies are included in the built-war (WEB-INF/lib folder)</p>
  
  <p>I use the maven dependency plugin in case of a jar-build as : </p>
  
  <pre><code>&lt;plugin&gt;
      &lt;artifactId&gt;maven-dependency-plugin&lt;/artifactId&gt;
      &lt;executions&gt;
          &lt;execution&gt;
              &lt;phase&gt;install&lt;/phase&gt;
              &lt;goals&gt;
                  &lt;goal&gt;copy-dependencies&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                  &lt;outputDirectory&gt;${project.build.directory}/lib&lt;/outputDirectory&gt;
              &lt;/configuration&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>but I'm unable to understand what is to be done in case of a war build. I've tried using the maven-war plugin, but it's not including system-dependencies in the build.</p>
  
  <p>[UPDATE]</p>
  
  <p>I'm having depedencies of type : </p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;LoginRadius&lt;/groupId&gt;
      &lt;artifactId&gt;LoginRadius&lt;/artifactId&gt;
      &lt;scope&gt;system&lt;/scope&gt;
      &lt;version&gt;1.0&lt;/version&gt;
      &lt;systemPath&gt;${basedir}\lib\LoginRadius-1.0.jar&lt;/systemPath&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>in my POM and these dependencies are not included in WEB-INF/lib when the war is build.</p>