Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in
2015-05-10 14:50
561 查看
执行Maven Install打包的时候,出现以下错误信息:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project pro-test: Error assembling 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/M***EN/MojoExecutionException[/code]
产生该错误的原因是“webapp”目录下缺少“WEB-INF”目录,缺少“WEB-INF/web.xml”文件。解决方案
创建目录及文件
相关文章推荐
- Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in
- Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode) -> [Help 1]
- Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in
- IDEA Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executin
- webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode)
- maven-install报错:webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update
- 【maven 报错】maven项目执行maven install时报错Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode)
- Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml
- Maven打包web项目报错Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if
- Maven报错:Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml
- Maven打包web项目报错Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if
- Error assembling WAR: webxml attribute is required
- MAVEN: Error assembling WAR: webxml attribute is required
- SpringBoot发布WAR启动报错:Error assembling WAR: webxml attribute is required
- [WARNING] Warning: selected war files include a WEB-INF/web.xml which will be ignored (webxml attribute is missing from war task, or ignoreWebxml attribute is specified as 'true')
- [Java][Maven]Maven部署Web项目报错webxml attribute is required
- Cannot load excludes configuration file "/WEB-INF/decorators.xml" as specified in "sitemesh.xml" or "sitemesh-default.xml"(已解决)
- Archive for required library: ‘WebContent/WEB-INF/lib/xxx.jar cannot be read or is not Zip file
- servlet3.0 用mava打war包报错(webxml attribute is required )
- Parse error in application web.xml file at jndi:/localhost/sdyth/WEB-INF/web.xml org.xml.sax.SAXPar