idea打包报错

错误信息:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project test: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode) -> [ Help 1]

解决办法:

在pom.xml中增加插件


    org.apache.maven.plugins
    maven-war-plugin
    3.0.0
    
        
            
                web
            
        
    

你可能感兴趣的:(Maven)