`

maven web.xml does not exist

 
阅读更多

 

问题:

 

  [INFO] 

------------------------------------------------------------------------ 
    [ERROR] BUILD ERROR 
    [INFO] 
------------------------------------------------------------------------ 
    [INFO] Error assembling WAR: Deployment descriptor: 
/source/#buildarea/mywebapp/WEB-INF/web.xml does not exist. 

 

 

解决方法:

 

 

<plugin> 
         <groupId>org.apache.maven.plugins</groupId> 
         <artifactId>maven-war-plugin</artifactId> 
         <configuration> 
<warSourceDirectory>/source/myproject/mywebapp/webapp</warSourceDirectory> 
         </configuration> 
     </plugin> 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics