maven web工程提示Cannot detect Web Project version. Please specify version of Web Project through Maven

maven war中提示
Description Resource Path Location Type
Cannot detect Web Project version. Please specify version of Web Project through Maven project property .
E.g.: 3.0  pom.xml /taotao-manager-web line 8 Maven Java EE Configuration Problem


 在pom.xml中添加如下代码,指定war的版本和编译插件

 
  
   
    maven-compiler-plugin
    
     1.7
     1.7
    

   

   
    maven-war-plugin
    2.4
    
     3.0
    

   

  

  webserver
 



你可能感兴趣的:(Spring)