Maven报错:Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml

来源:互联网 发布:西门子触摸屏编程手册 编辑:程序博客网 时间:2024/05/16 20:29

运行Maven install时报错:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project MavenFoo: 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/MAVEN/MojoExecutionException

解决方法:

main下新增目录与web.xml文件


0 0
原创粉丝点击