webxml attribute is required error on maven build of war

webxml attribute is required error on maven build of war

This error appears mostly when Maven could not find the web.xml file. If you are following the default maven structure, make sure the webapp folder is named correctly – like not webapps or something like that.
Once you make sure, you can try by explicitly telling maven where the web.xml file is using

 
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.0</version>
<configuration>
<webXml>src/main/webapp/WEB-INF/web.xml</webXml>
</configuration>
</plugin>

See how you would solve these known algorithm problems

Find the first occurence of number in the sorted array

Changing decimal number to its binary equivalent

String Ordered Permutation Algorithm Problem

Array reversal in Recurrsion

Java solution for checking anagram strings – tell if phrases are anagrams

Flatten nested javascript array

Finding missing numbers from billion sequential number list file

Get maximum occurring character

Check if there are three numbers a, b, c giving a total T from array A

find longest word in the sentence

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*