Enter your keyword

post

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.

Some Toughts (2)

  1. Anonymous
    added on 20 Nov, 2018
    Reply

    you literally saved me!

  2. added on 18 Jul, 2019
    Reply

    Thanks for sharingcustom erp solutions

Leave a Reply

Your email address will not be published.