STEPS TO RESOLVE ERROR ASSEMBLING WAR WEBXML ATTRIBUTE IS REQUIRED

Publicado em: 02 Outubro 2020
no canal de: Tech Tv
271
5

How to Resolve “Error assembling WAR: webxml attribute is required???

We can FIX this in 2 way. But I am suggesting the second way. I will tell you reason in later part of video.
1. Add a plug-in dependency with failOnMissionWebXml configuration – syntax available in description as well as in next slide.
2. Add WEB-INF/web.xml in the child war module inside webapp folder under src/main/webapp.

Syntax:
build
plugins
plugin
groupId org.apache.maven.plugins groupId
artifactId maven-war-plugin artifactId
version 2.3 version
configuration
failOnMissingWebXml false failOnMissingWebXml
configuration
plugin
plugins
build

Reason for suggesting second as best option – One can resolve the build issue using failOnMissionWebXml but for servlet communication post deployment of your war in any server requires web.xml file. You can’t skip this step there.


Nesta página do site você pode assistir ao vídeo on-line STEPS TO RESOLVE ERROR ASSEMBLING WAR WEBXML ATTRIBUTE IS REQUIRED duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Tech Tv 02 Outubro 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 271 vezes e gostou 5 espectadores. Boa visualização!