maven部署项目报错Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:redeploy

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  16.292 s
[INFO] Finished at: 2019-01-22T11:08:29+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:redeploy (default-cli) on project campusshop-manager-service: Cannot invoke Tomcat manager: Connection refused: connect -> [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
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :campusshop-manager-service
 

解决方法:因为服务是发布到tomcat服务器上,查看原因是tomcat服务器没有启动,需要先在本地将tomcat服务启动后,再进行部署。

猜你喜欢

转载自blog.csdn.net/weixin_42133396/article/details/86591480
今日推荐