tomcat-maven-plugin 403 error

前端 未结 21 1415
礼貌的吻别
礼貌的吻别 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:36

    This solution is for "Apache" Tomcat7 plugin: As it is already mentioned before you need to add "/text" to the end of the url

    
    org.apache.tomcat.maven
    tomcat7-maven-plugin
    2.2
    
        8080
        /deployPath
        http://localhost:8080/manager/text
        TomcatServer
    
    

    Configure you "settings.xml" which is located inside .m2 folder

    
        
            TomcatServer
            script-admin
            password
        
    
    

    Since you use Tomcat 7, the MOST important thing is that you should create a different user for "manager-script" role, as it is mentioned in the documentation!

    
    
    

提交回复
热议问题