错误:Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2

错误:Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:redeploy (default-cli) on project MavenSSM2: Cannot invoke Tomcat manager: Connection refused: connect -> [Help 1]

报错:错误:Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2_第1张图片

查询过程:本项目是在manager里面的pom.xml内配置的Tomcat插件:

错误1:


  			org.apache.tomcat.maven
  			tomcat7-maven-plugin
  			${tomcat7-maven-plugin.version}
  			
  				http://localhost:8080/manager/text
  				root
  				root
  			

而manager的Tomcat是引用的parent里面的pom.xml内配置的Tomcat插件:

 root
 root
 

原因:用户名密码错误。

 错误2:
 tomcat必须先启动

 

项目运行成功:

你可能感兴趣的:(maven,tomcat)