tomcat-maven-plugin 403 error

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

    For Tomcat7, in tomcat-users.xml you need rolename manager-script also:

    
    
    
    

    and in project's POM.xml

    
       org.codehaus.mojo
       tomcat-maven-plugin
       
            http://localhost:8080/manager/text
            myserver
            /sw
       
    
    

    and maven's settings.xml:

    
     
      myserver
      tomcat
      s3cret
     
    
    

提交回复
热议问题