maven web项目build失败
生活随笔
收集整理的這篇文章主要介紹了
maven web项目build失败
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
通過maven build發布web項目到tomcat時報如下異常:
[INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.671 s [INFO] Finished at: 2015-11-23T15:51:07+08:00 [INFO] Final Memory: 16M/310M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.1:deploy (default-cli) on project spring-security-cas: Cannot invoke Tomcat manager: Connection reset by peer: socket write error -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException原因為:
1、檢查tomcat安裝目錄下的conf/tomcat-users.xml中的<tomcat-users>節點下是否添加了權限的設置
2、maven安裝目錄下的conf/settings.xml中server的賬號和密碼是否正確
更多詳情見:Maven發布web項目到tomcat
總結
以上是生活随笔為你收集整理的maven web项目build失败的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: netstat 详解
- 下一篇: 大型分布式网站架构设计与实践 第一章《面