tomcat-maven-plugin 403 error

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

    The /manager application is by default secured by username/password. If you enter http://localhost:8080/manager you will be asked to provide security credentials as well. First create/enable user in Tomcat: after canceling or few unsuccessful attempts Tomcat will provide help on error screen. Then use these credentials in tomcat-maven-plugin as explained here:

    Add a plugin configuration block to your pom.xml:

    
        org.codehaus.mojo
        tomcat-maven-plugin
        
                myserver
        
    
    

    Add a corresponding server block to your settings.xml:

    
        myserver
        myusername
        mypassword
    
    

提交回复
热议问题