title: Maven Error assembling WAR: webxml attribute is required when building the SpringMVC project with pure Java Based Configuration and no xml's
body: <p>I am developing a Spring MVC project with pure Java based configuration. I am getting the error below when I do a Maven clean install.</p>
  
  <blockquote>
    <p>Failed to execute goal
    org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on
    project SpringMVC-ShoppingCart: Error assembling WAR: webxml attribute
    is required (or pre-existing WEB-INF/web.xml if executing in update
    mode) -> [Help 1]</p>
  </blockquote>
  
  <p>The error says that <code>web.xml</code> is missing, but I did not have one since I used pure Java based configuration.</p>
  
  <p>How to make sure that the project builds and creates war file without <code>web.xml</code>?</p>