title: Create WAR file from pom.xml for an existing Maven project
body: <p>I am creating a web project and I was told that it has to reside inside the resources directory of an existing maven project</p>
  
  <p>Here is the structure of the project</p>
  
  <pre><code>MavenProject
    |-- src
    |   |-- main
    |   `-- resources
    |       `-- My-Web-Project
    |           |-- META-INF
    |           |    `-- MANIFEST.MF
    |           |-- src
    |           |   |-- classes
    |           |   |   |-- com
    |           |   |   |   `-- example
    |           |   |   |       `-- projects
    |           |   |   |           `-- SampleAction.class
    |           `-- web
    |               |-- css
    |               |-- css
    |               |-- img
    |               |-- js
    |               |-- WEB-INF
    |               |   `-- web.xml 
    |               |-- index.jsp
    |               `-- secondary.jsp
    |-- test
    `-- pom.xml
  </code></pre>
  
  <p>As you can see there is already a pom.xml file for the MavenProject. I want to be able to deploy my web project WAR using the current pom.xml.</p>
  
  <p>I want to know if it's possible to do this and how would I proceed to create the Maven Plugin.</p>
  
  <p>I read  this article but I don't know if it apply to my situation
  <a href="http://maven.apache.org/plugins/maven-war-plugin/usage.html" rel="nofollow">http://maven.apache.org/plugins/maven-war-plugin/usage.html</a></p>
  
  <p>EDIT:</p>
  
  <p>I am using tomcat app server.</p>
  
  <p>As Mentioned before, My project "My-Web-Project" should be under "resources"</p>