Saturday, 20 May 2017

Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode) -> [Help 1]

Some time you will be struggling with building the war using maven and will get the error:

Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode) -> [Help 1]

This is because you don't have web.xml in your project and trying to create .war file using maven then you will get this error for sure.

To resolve the issue you need to set the failOnMissingWebXml to false in pom.xml file.

For example:

<properties>
    <failOnMissingWebXml>false</failOnMissingWebXml>  
</properties>

Create .war file. This time you will get success for sure.

1 comment: