Webxml is required (or pre-existing web-inf/web.xml if executing in update mode) __web

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.