Tag Archives: Error assembling War

Error assembling War: webxml attribute is required

Error information:

Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/ web.xml

The project started by springboot reported an error.

Solution:

<!-- Building a WAR without a web.xml file
            <plugin>
                <artifactId>maven-war-plugin</artifactId>
                <version>3.0.0</version>
            </plugin>
            -->
            <plugin>
                <artifactId>maven-war-plugin</artifactId>
                <version>2.6</version>
                <configuration>
                    <!--Set to false if you want to build the WAR without the web.xml file.-->
                    <failOnMissingWebXml>false</failOnMissingWebXml>
                </configuration>
            </plugin>