Tomcat deployement issue in a Maven project

后端 未结 4 638
执念已碎
执念已碎 2021-01-25 04:49

I have been trying to create a simple maven web based project to be confident about maven. I have added tomcat7 plugin in my pom.xml to use it as a server. But when i started to

4条回答
  •  盖世英雄少女心
    2021-01-25 05:10

    I got this working too thanks to points in this post.. Things I got stuck on were: The POM file - you need a slash on the beginning of the path (or it tried to install it under /manager/ and fails):

    
        org.apache.tomcat.maven
        tomcat7-maven-plugin
        2.2
        
            http://10.54.17.35:8080/manager/text
            LoginForTomcat
            /displayService
        
    
    

    provide server credentials in ~/.m2/settings.xml:

    
        
            LoginForTomcat
            figgy
            passw0rd
        
    
    

    On the tomcat server, you need to define manager-script and manager-jmx:

      
      
      
      
    

    Looking over this everything here is in the posts above, posting this to clarify things.

提交回复
热议问题