Failed to execute goal org Apache maven plugins maven war plugin 2 2 war
If you are using maven for dependency management and while build you see error as below:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project SpringChild2: Error assemblin g WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode) -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :SpringChild2
Solution: It means web.xml file is missing from the project please add web.xml into the project which should be inside WEB-INF/ folder and path should be WEB-INF/web.xml.