Publish Web projects through MAVEN build to the Tomcat times following exceptions:
[INFO]------------------------------------------------------------------------[INFO] BUILD Failure[info]------------------------------------------------------------------------[INFO] Total time:4.671S[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--[He LP 1][error] [ERROR] to see the full stack trace of the errors, re-run Maven with The-eSwitch. [ERROR] Re-run Maven using The-xSwitchTo enable full debug logging. [ERROR] [ERROR] For more information on the errors and possible solutions, please read the following articles:[error] [ Help1] http://cwiki.apache.org/confluence/display/maven/mojoexecutionexception
The reasons are:
1. Check if the settings for permissions are added under the <tomcat-users> node in Conf/tomcat-users.xml under the Tomcat installation directory
2. The server's account and password are correct in the Conf/settings.xml in the MAVEN installation directory
For more details see: Maven Publishing Web project to Tomcat
Maven Web project build failed