1. Error description
[INFO]
Scanning for projects ...
[INFO]
[INFO]------------------------------------------------------------------------[INFO] Building Cdmp 0.0.1-snapshot [INFO]------------------------------------------------------------------------[INFO] [INFO]--- Maven-resources-plugin:2.6:resources (default-resources) @ Cdmp---[WARNING] Using platform encoding (UTF-8 actually) to
Copy filtered, i.e. build is platform dependent! [INFO] Copying 0 resource [info] [INFO]---maven-compiler-plugin:3.1:compile (default-compile) @ Cdmp---[info] nothing to com Pile-all classes are up to date [info] [INFO]---maven-resources-plugin:2.6:testresources (default-testresources) @ Cd
MP---[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. builds is platform dependent! [INFO] Copying 0 resource [info] [INFO]---maven-compiler-plugin:3.1:testcompile (default-testcompile) @ Cdmp---[info] Nothing to Compile-all classes are up to date [info] [INFO]---maven-surefire-plugin:2.12.4:test (default-test) @ Cd MP---[info] [INFO]---maven-war-plugin:2.2:war (default-war) @ Cdmp---[info] packaging WebApp [INFO] assembling Weba PP [Cdmp] in [F:\workspace\Cdmp\target\Cdmp-0.0.1-SNAPSHOT] [INFO] processing War project [info] Copying WebApp
[F:\workspace\Cdmp\src\main\webapp] [INFO] Webapp assembled in [msecs] [INFO] building War:f:\workspace\cdmp\target\cdmp-0.0.1-snapshot.war [INFO]------------ ------------------------------------------------------------[INFO] build failure [INFO]--------------------------
----------------------------------------------[INFO] Total time:3.181 s [info] finished at:2017-01-10t11:08:36+08:00 [INFO] Final memory:11m/154m [INFO]------------------------------------------------------------------------[ERROR] Failed to execute goal Org.apache.maven.plugins:maven-war-plugin:2.2:war (Default-war) on project Cdmp:error AssembliNg War:webxml are required (or pre-existing web-inf/web.xml if executing in update mode)-> [Help 1] [ERROR] [ERROR]
To the "full stack" trace of the errors, re-run Maven with THE-E switch. [ERROR]
Re-run Maven using The-x switch to enable the full debug logging.
[ERROR] [ERROR] For more information about the errors and possible solutions, "read the following articles: [ERROR] [help 1] http://
Cwiki.apache.org/confluence/display/maven/mojoexecutionexception
2. Error reason
When you create a MAVEN project, you do not have a new web.xml
3. Solutions
(1) New web.xml in Web-inf directory