title: FailOnMissingWebXml error when validating pom.xml in Eclipse
body: <p>When compiling a Maven project I get this error during validation phase of the <code>pom.xml</code>. It is quite a large project with complex build process. The project contains only JavaScript code and does not have to be compiled into <code>war</code>. I'm looking for a way to either:</p>
  
  <ul>
  <li>Just disable the error through disabling <code>failOnMissingWebXml</code> (it appears to be a non-critical Eclipse error)</li>
  <li>Find a solution that prevents this validation error in Eclipse (answers to related
  questions didn't work for my specific scenario)</li>
  </ul>
  
  <p>The full error:</p>
  
  <pre><code>Description Resource    Path    Location    Type web.xml is missing 
  and &lt;failOnMissingWebXml&gt; is set to true    pom.xml /testproject    line 6    
  Maven Java EE Configuration Problem
  </code></pre>
  
  <p>After clicking on the error the problem seems to be on this line of <code>pom.xml</code>:</p>
  
  <pre class="lang-xml prettyprint-override"><code>  &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;com.scs&lt;/groupId&gt;
    &lt;artifactId&gt;scs-control-panel&lt;/artifactId&gt;
    &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
    &lt;packaging&gt;war&lt;/packaging&gt; **THE ERROR POINTS TO THIS LINE**
  
    &lt;parent&gt;
      &lt;groupId&gt;com.scs&lt;/groupId&gt;
      &lt;artifactId&gt;scs&lt;/artifactId&gt;
      &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
      &lt;relativePath&gt;../scs&lt;/relativePath&gt;
    &lt;/parent&gt;
  
    &lt;build&gt;
    &lt;/build&gt;
  
    &lt;dependencies&gt;
    &lt;/dependencies&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>Not sure if this is an Eclipse or Maven error, but probably Eclipse, since Maven runs smoothly through command line. It may also be a bug in Eclipse, I'm running Eclipse Java EE IDE for Web Developers Version: Mars.1 Release (4.5.1).</p>
  
  <p>UPDATE1: I tried updating the project in Eclipse but no difference.</p>
  
  <p>UPDATE2: I tried changing the package type from <code>war</code> to <code>pom</code> but no difference.</p>