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

后端 未结 5 2122
旧时难觅i
旧时难觅i 2020-12-30 05:00

i am trying to do mvn tomcat:deploy and i came across with the error

 [ERROR] Failed to execute goal org.codehaus.mojo:tomcat-maven-plugin:1         


        
5条回答
  •  梦毁少年i
    2020-12-30 05:22

    In my case solution worked. I did one petty mistake of not starting Apache Tomcat Server.

    Apart from this, make user that you do appropriate entry in maven/conf/setting.xml within tag:-

    
        TomcatServer
        admin
        password
    
    

    In Apache Tomcat 7 tomcat-users.xml, following line should be added within

    
    
    
        
         
          
          
          
          
         
    

    In Pom.xml

     
        org.apache.tomcat.maven
        tomcat7-maven-plugin
        2.2
        
            http://localhost:8888/manager/text
            TomcatServer
            $ReplaceWithWarFileName$
            true
            admin
            password
        
    
    

提交回复
热议问题