Hot deployment (XI)

1. Modify tomat / conf / tomcat-users.xml

<role rolename="manager-gui"/>
<role rolename="manager-script"/> 
<user username="tomcat" password="tomcat" roles="manager-gui,manager-script"/>

2. tomcat plugin <configuration> in the configuration in pom.xml maven project

< Plugin > 
    < the groupId > org.apache.tomcat.maven </ the groupId > 
    < the artifactId > tomcat7-Maven-plugin </ the artifactId > 
    < Version > 2.2 </ Version > 
    < Configuration > 
        < Port > 80 </ Port >  <! - control tomcat port number -> 
        < path > / </ path > <-! the name of the project to release tomcat ->  <!--/ Equivalent to the project name to ROOT ->  <-! / Abc -> 
        < username > Tomcat </ username > 
        < password > Tomcat </ password > 
        < url > http://192.168.139.128:8080/ Manager / text </ URL > 
    </ Configuration > 
</ plugin >

3. Right Project -> run as -> maven build (second choice) -> Input

tomcat7: deploy first released
tomcat7: redeploy not the first time released
 

 

Guess you like

Origin www.cnblogs.com/myitnews/p/11478850.html