Info 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
Failed To Execute Goal Org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) On Project
Us Learn more about Stack Overflow the company Business Learn more about hiring developers error assembling war webxml attribute is required spring boot or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack
Failed To Execute Goal Org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) On Project
Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Maven Error assembling WAR: webxml attribute is maven web.xml location required when building the SpringMVC project with pure Java Based Configuration and no xml's up vote 5 down vote favorite 3 I am developing a Spring MVC project with pure Java based configuration. I am getting the error below when I do a Maven clean install. Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project SpringMVC-ShoppingCart: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if maven web.xml example executing in update mode) -> [Help 1] The error says that web.xml is missing, but I did not have one since I used pure Java based configuration. How to make sure that the project builds and creates war file without web.xml? java maven spring-mvc web-applications maven-assembly-plugin share|improve this question edited Oct 28 '15 at 12:02 Tunaki 57.4k1885116 asked Oct 28 '15 at 11:59 Omkar Puttagunta 1,2421716 add a comment| 1 Answer 1 active oldest votes up vote 9 down vote accepted You need to configure the maven-war-plugin to ignore the missing web.xml file with the failOnMissingWebXml attribute set to false. By default, this plugin expects a web.xml, which explains the error you are getting. Sample configuration:
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the
Maven-war-plugin Version
workings and policies of this site About Us Learn more about maven-war-plugin configuration Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions
Failonmissingwebxml
Jobs Documentation 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. http://stackoverflow.com/questions/33390460/maven-error-assembling-war-webxml-attribute-is-required-when-building-the-sprin Join them; 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 http://stackoverflow.com/questions/36506624/error-of-maven-webxml-attribute-is-required-but-i-have-my-web-xml bad in maven 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:
App EngineApache AntApache MavenjQueryJava MongoDBQuartz SchedulerLog4jContact Us Maven - webxml attribute is requiredBy mkyong | January 27, 2016 | Viewed : 6,920 times +238 pv/wMaven package a web https://www.mkyong.com/maven/maven-webxml-attribute-is-required/ application and hits the following error message : $ mvn package //... [ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project spring4-mvc-maven-ajax-example: Error assembling WAR: webxml https://coderanch.com/t/550433/tools/Error-assembling-WAR-webxml-attribute attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode) -> [Help 1] Solution1. For servlet container < 3, make sure WEB-INF/web.xml file exists.2. For error assembling servlet container >=3, and NO web.xml web application, declares the following maven-war-plugin plugin, and set the failOnMissingWebXml option to false.pom.xml
Certification Databases Caching Books Engineering Languages Frameworks Products This Site Careers Other all forums Forum: Ant, Maven and Other Build Tools Error assembling WAR: webxml attribute is required Brian Babbage Greenhorn Posts: 8 posted 5 years ago Hi all, I'm converting an ant build to a maven build using eclipse (helios) and jdk 1.6.21. I've searched this error and the results are repleat with only one 'fix' to it which is to make sure the web.xml is in the /src/main/webapp/WEB-INF folder. The apps web.xml is there and I've even added a specific webxml tag to my pom to no avail. I'm really banging my head against a wall with this error and any insight would be appreciated pom snippet: