title: Directory not creating other than WEB-INF & META-INF in WAR using Maven pom.xml
body: <p>I need to create war for my spring framework project using maven(pom.xml) mvn clean install command. My Project SpringMVC folder contains jsp and src folder
  all folder in src is creating inside the web-inf but i need to create jsp and other folder outside web-inf.</p>
  
  <p>pom.xml build tag code</p>
  
  <pre><code>&lt;build&gt;
      &lt;finalName&gt;SpringMVC&lt;/finalName&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;configuration&gt;
              &lt;webResources&gt;
          &lt;resource&gt;
            &lt;!-- this is relative to the pom.xml directory --&gt;
            &lt;directory&gt;resource2&lt;/directory&gt;
            &lt;/resource&gt;
            &lt;/webResources&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p>In war file jsp folder not creating near web-inf. I don't know what else to try.</p>
  
  <p>My Expected Output Folder Structure</p>
  
  <pre><code>SpringMVC.war
   |-- META-INF
   |   |-- MANIFEST.MF
   |   `-- maven
   |       `-- com.example.projects
   |           `-- documentedproject
   |               |-- pom.properties
   |               `-- pom.xml
   |-- WEB-INF
   |   |-- classes
   |   |   |-- com
   |   |   |   `-- example
   |   |   |       `-- projects
   |   |   |           `-- SampleAction.class
   |   |   `-- images
   |   |       `-- sampleimage.jpg
   |   `-- web.xml
   |-- external-resource.jpg
   |-- image2
   |   `-- external-resource2.jpg
   |-- index.jsp
   `-- jsp
       `-- websource.jsp
  </code></pre>