同时我解决了。有几个问题。
首先,我在Eclipse 运行配置* 中将 Goal 设置为。 *
tomcat:deploy
我改变了
pom.xml以下
<plugin> <groupId>org.prehaus.mojo</groupId> <artifactId>tomcat-maven-plugin</artifactId> <configuration> <url>http://localhost:8080/manager/text</url> <server>Apache_Tomcat_7_x86</server> <path>/HelloWorld</path> </configuration></plugin>
配置中的URL取决于Tomcat版本。对我而言
text,对他人有效
html,对URL末尾有效。当然,
tomcat-users.xml必须在中设置角色
manager-script或
manager-gui。
也许对别人有帮助。



