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

Check if two strings are anagrams or not

String Ordered Permutation Algorithm Problem

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

Array reversal in Recurrsion

Kadane’s algorithm in C – Dynamic Programming

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

Find K Complementary numbers from array Java implementation

Find the first occurence of number in the sorted array

Find longest palindrom from sequence of characters

Find the pairs that makes K Complementary in the given array java solution

Leave a Reply

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

*
*