【发布时间】:2011-07-19 10:43:08
【问题描述】:
我正在使用 Tomcat 6.0.32(带有新的用户管理系统(manager-gui、manager-script,...)),并且在使用 maven 的取消部署过程中遇到了一些问题。
我不断收到此错误:
[ERROR] Failed to execute goal org.codehaus.mojo:tomcat-maven-plugin:1.1:undeploy (default-cli) on project test: Cannot invoke Tomcat manager: <html>
问题似乎与 tomcat 目标有关。目前在我的 pom.xml 我有这个:
<configuration>
<url>http://localhost:8080/manager/html</url>
<server>tomcat6</server>
<path>/test/*</path>
</configuration>
我已经阅读了一些关于定位 /html 或 /text 的问题,但目前我并不知道它应该如何工作。 /html 可以很好地部署(而 /text 不是),但不能用于取消部署。
有什么想法吗?
谢谢!
【问题讨论】:
-
我已经迁移到 Tomcat 7.0.20,其中的 codehaus mojo mavent tomcat 插件在部署和取消部署时都可以正常工作。但如果有人能出于好奇解决这个问题...... :)
标签: tomcat deployment maven tomcat6