title: Maven error while building WAR package (web.xml missing..?)
body: <p>While executing <code>mvn install</code>, I'm getting following error:</p>
  
  <blockquote>
    <p>Error assembling WAR: webxml attribute
    is required (or pre-existing
    WEB-INF/web.xml if executing in update
    mode)</p>
  </blockquote>
  
  <p>My web application structure tree is like that:</p>
  
  <pre><code>my-app
  |-- pom.xml
  |-- src
      |-- ...
      |-- WebContent
          |-- ...
          |-- META-INF
          |-- WEB-INF
              |-- classes
                  |-- ...
              |-- lib
              |-- **web.xml**
  </code></pre>
  
  <p>My POM file looks like that:</p>
  
  <pre><code>&lt;project&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;masters.traffic&lt;/groupId&gt;
    &lt;artifactId&gt;traffic_web&lt;/artifactId&gt;
    &lt;packaging&gt;war&lt;/packaging&gt;
    &lt;name&gt;traffic_web&lt;/name&gt;
    &lt;version&gt;0.1.0&lt;/version&gt;
    &lt;build&gt;
          &lt;sourceDirectory&gt;src&lt;/sourceDirectory&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;1.6&lt;/source&gt;
                      &lt;target&gt;1.6&lt;/target&gt;                    
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
    &lt;/build&gt;
  
      ...
  &lt;/project&gt;
  </code></pre>
  
  <p>How to properly fix that issue ? </p>
  
  <p>Regards</p>