tomcat-maven-plugin 403 error

前端 未结 21 1416
礼貌的吻别
礼貌的吻别 2020-12-07 18:05

When I use mvn tomcat:deploy of tomcat-maven-plugin there is a 403 error:

Failed to execute goal org.codehaus.mojo:tomcat-maven-plugin:1.0:deploy (default-cli) on pr

21条回答
  •  忘掉有多难
    2020-12-07 18:38

    Passing from tomcat6 to tomcat7 recap:

    1. Add roles in tomcat-user.xml
    2. Add /text or /html to your url
    3. Change plugin version

      org.apache.tomcat.maven 
      tomcat7-maven-plugin 
      2.2
      
    4. Change the option tomcat:deploy with tomcat7:deploy

提交回复
热议问题