[英]mvn:deploy can not invoke tomcat manager
I am using mvn2, when I am trying to deploy my project using mvn:deploy
command I am having error can not invoke Tomcat manager connection refused: connect below is my pom configuration 我正在使用mvn2,当我尝试使用
mvn:deploy
命令部署项目时出现错误,无法调用Tomcat管理器连接被拒绝:下面的连接是我的pom配置
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat6-maven-plugin</artifactId>
<version>2.0</version>
<configuration>
<url>http://localhost/manager</url>
<path>/scgtwitter</path>
<server>QA</server>
</configuration>
</plugin>
What could be the possible solutions? 可能的解决方案是什么?
The error indicates that either tomcat isn't up and running (so start it), or maybe your config is wrong. 该错误表明Tomcat未启动并正在运行(因此请启动它),或者您的配置错误。 Although I have not used that particular plugin, I have used a similar one, I imagine the principal is essentially the same.
尽管我没有使用过该特定插件,但我使用了类似的插件,但我想其原理本质上是相同的。 This what I have:
这是我所拥有的:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>tomcat-maven-plugin</artifactId>
<configuration>
<server>localTomcat</server>
<path>/</path>
</configuration>
</plugin>
And in the ~/.m2/settings.xml, I have supplied the username/password for the tomcat manager app: 在〜/ .m2 / settings.xml中,我为tomcat管理器应用程序提供了用户名/密码:
<servers>
<server>
<id>localTomcat</id>
<username>tomcat</username>
<password>tomcat</password>
</server>
</servers>
Run with with 与一起运行
mvn tomcat:deploy
or 要么
mvn tomcat:redeploy
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.