我正在尝试使用Tomcat Maven插件将网页部署到Tomcat。
但我似乎出错了
[ERROR] Failed to execute goal org.codehaus.mojo:tomcat-maven-plugin:1.1:deploy (default-cli) on project ReoWebPage: Cannot invoke Tomcat manager: Server returned HTTP response code: 401 for URL: http://localhost:8080/manager/deploy?path=%2FReoWebPage&war= -> [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
此...
如果我继续修改tomcat.xml和settings.xml,但是我会遇到相同的错误。
出什么问题了?
pom插件
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<url>http://localhost:8089/manager/text</url>
<server>TomcatServer</server>
<path>/ReoWebPage</path>
</configuration>
</plugin>
settings.xml
<server>
<id>TomcatServer</id>
<username>admin</username>
<password>password</password>
</server>
tomcat-users.xml文件
<role rolename="tomcat"/>
<role rolename="admin-script"/>
<role rolename="manager-script"/>
<role rolename="manager-gui"/>
<role rolename="manager-jmx"/>
<role rolename="manager-status"/>
<role rolename="manager"/>
<role rolename="admin"/>
<user password="password" roles="tomcat" username="admin"/>
<user password="password" roles="manager-gui" username="admin"/>
<user password="password" roles="admin,admin-script,manager-gui,manager-script,manager-jmx,manager-status" username="admin"/>
运行环境rivse jre-> jdk
我正在使用eclipse和tomcat 8.0 请帮忙.. 谢谢