打包maven项目时出现Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war)

当一个maven项目是web工程的时候,要注意添加web.xml文件,一般默认是创建在main目录下的webapp/WEB-INF/web.xml,当然,如果你选择了maven 动态模板,会自动帮你建好这个目录,如果没有的话,你就要自己创建了。 如果没有的话,会报错:[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-
相关文章
相关标签/搜索