Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war

这种情况通常是运行maven的相关操作时找不到web.xml的情况下造成的。

解决方案:

在pom.xml的结点中添加如下代码:


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

保存pom.xml后再进行打包等操作,Build Success!

你可能感兴趣的:(Java)