Eclipse Maven Error Assembling War Webxml Attribute Is Required
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company
Error Assembling War Webxml Attribute Is Required (or Pre-existing Web-inf/web.xml If Executing
Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs error assembling war webxml attribute is required spring boot Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project just like you, helping each other. Join them; it only takes a minute: Sign up “webxml attribute is required” error in Maven up vote 207 down vote favorite 39 I am getting the following error: Error assembling
Failed To Execute Goal Org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) On Project
WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode) I have got web.xml in right place which is projectname\src\main\webapp\WEB-INF\web.xml What could be causing this? maven war share|improve this question edited Jun 19 '14 at 20:09 ArtB 7,1531463104 asked Mar 18 '11 at 12:25 user617966 1,67541524 1 is your packaging set to war in the pom? –crowne Mar 18 '11 at 17:15 add a comment| 14 Answers 14 active oldest votes
Maven Web.xml Location
up vote 255 down vote It would be helpful if you can provide a code snippet of your maven-war-plugin. Looks like the web.xml is at right place, still you can try and give the location explicitly
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings maven web.xml example and policies of this site About Us Learn more about Stack Overflow
Maven-war-plugin Version
the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation failonmissingwebxml Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; http://stackoverflow.com/questions/5351948/webxml-attribute-is-required-error-in-maven it only takes a minute: Sign up Error of maven webxml attribute is required but i have my web xml? up vote 0 down vote favorite I try use open shift. And try deploy dynamic web project from eclipse with openshift plugin help in openshift tomcat 7. And when i try deploy i have building error, i bad in maven http://stackoverflow.com/questions/36506624/error-of-maven-webxml-attribute-is-required-but-i-have-my-web-xml but like i understand it is becouse maven do not see my web.xml but i have my web.xml. Project do not have some exotic api. It is my WebContent/WEB-INF/web.xml:
this release is ease http://www.javaroots.com/2014/01/webxml-attribute-is-required-error-in.html of development . Now you don't have to write configurations related things in web.xml , you can write all these things by using annotations . So , from servlet 3.0 , web.xml is optional (however , if web.xml is present , it will be given preference over error assembling annotations ) . If you are using maven for packaging your war , you might get following error if you don't have web.xml in your application . Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on project webSocketExample: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml error assembling war if executing in update mode) -> [Help 1] You can resolve this error by adding following lines in your pom.xml