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

testing k complementary pairs algorithm with junit

Find longest palindrom from sequence of characters

Find the first occurence of number in the sorted array

Check if two strings are anagrams or not

binary tree problems with solution

Find K Complementary numbers from array Java implementation

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

Implementing tokenizer and adding tokens to the linked list

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

Kadane’s algorithm in C – Dynamic Programming

Leave a Reply

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

*
*