maven deploy Tomcat失败

maven 远程部署Tomcat失败。


 [INFO] <<< tomcat7-maven-plugin:2.2:deploy (default-cli) < package @ hui-web <<<
[INFO]
[INFO] --- tomcat7-maven-plugin:2.2:deploy (default-cli) @ hui-web ---
[INFO] Deploying war to http://192.168.182.128:8081/myhui
Uploading: http://192.168.182.128:8081/manager/html/deploy?path=%2Fmyhui
2078/33441 KB
[INFO] I/O exception (java.net.SocketException) caught when processing request: Connection reset by peer: socket write error
[INFO] Retrying request
Uploading: http://192.168.182.128:8081/manager/html/deploy?path=%2Fmyhui
2102/33441 KB
[INFO] I/O exception (java.net.SocketException) caught when processing request: Connection reset by peer: socket write error
[INFO] Retrying request
Uploading: http://192.168.182.128:8081/manager/html/deploy?path=%2Fmyhui
2062/33441 KB
[INFO] I/O exception (java.net.SocketException) caught when processing request: Connection reset by peer: socket write error
[INFO] Retrying request
Uploading: http://192.168.182.128:8081/manager/html/deploy?path=%2Fmyhui
2072/33441 KB
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 21.202 s
[INFO] Finished at: 2016-08-01T09:59:39+08:00
[INFO] Final Memory: 32M/433M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:deploy (default-cli) on project hui-web: 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


4个回答

楼主后来解决了吗,我也遇到一样问题了,求解决方法

liaoranxi
小熊猫丶 真是世事无常,我已经解决了。是在tomcat的user-role配置时出的问题,后面从tomcat7里面复制过去,就可以了。
2 年多之前 回复
liaoranxi
小熊猫丶 我也遇到这个问题了,等我找到问题了,我就告诉你哈。
2 年多之前 回复

改成mvn tomcat7:redeploy 试试,mvn tomcat7:deploy只适用于第一次部署

u012043557
慧强杨 我就是第一次的,换了命令结果是一样的,是断传了,不知道有没有好的解决方案
大约 4 年之前 回复

有可能是pom中依赖的资源 下载较慢 或者 就下载不下来

tomcat-user.xml配置正确了么?需要配置manager-script角色



<user username="tomcat" password="tomcat" roles="manager-gui"/>
<user username="admin" password="admin" roles=" manager-script, manager-jmx, manager-status"/>
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐