为了账号安全,请及时绑定邮箱和手机立即绑定

mvn package失败

mvn package失败

慕容森 2019-02-20 09:20:10
报错如下,很简单的学习maven的小例子。 [INFO] BUILD FAILURE[INFO] ------------------------------------------------------------------------[INFO] Total time: 3.913 s[INFO] Finished at: 2015-10-31T23:58:15+08:00[INFO] Final Memory: 16M/179M[INFO] ------------------------------------------------------------------------[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project maven01: 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
查看完整描述

1 回答

?
繁星淼淼

TA贡献1775条经验 获得超11个赞

报错的这个提示

 webxml attribute is req
uired (or pre-existing WEB-INF/web.xml if executing in update mode)

是不是你的web工程缺少了web.xml文件呢
试试clean compile

查看完整回答
反对 回复 2019-03-01
  • 1 回答
  • 0 关注
  • 478 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信