当我使用mvn tomcat:tomcat-maven-plugin的部署时出现403错误:
无法在项目my-webapp上执行目标org.codehaus.mojo:tomcat-maven-plugin:1.0:deploy(default-cli):无法调用Tomcat管理器:服务器返回HTTP响应代码:403用于URL: http://localhost:8080/manager/text/deploy?path=%2Fdms&war=
我认为这是因为空战参数.但为什么它是空的???
在pom.xml中有:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>tomcat-maven-plugin</artifactId>
<configuration>
<warFile>target\my-webapp.war</warFile>
<server>myserver</server>
<url>http://localhost:8080/manager/text</url>
<path>/dms</path>
</configuration>
</plugin>
Run Code Online (Sandbox Code Playgroud)