1.tomcat-users.xml
Files in servers in Ps:eclipse
<rolename= "Manager-gui"/><rolename = "Manager-script"/><username= "Admin" Password = "Admin" roles= "Manager-gui, manager-script"/>
2. Pom.xml in the project
<Profiles> < Profile> <ID>Dev</ID> <Properties> <Env>Dev</Env> <Deploy.url>http://localhost:8080/manager/</Deploy.url> </Properties> <activation> <Activebydefault>True</Activebydefault> </activation> </ Profile> < Profile> <ID>Test</ID> <Properties> <Env>Test</Env> </Properties> </ Profile> < Profile> <ID>Product</ID> <Properties> <Env>Product</Env> </Properties> </ Profile> </Profiles>#plugins<plugin> <groupId>Org.codehaus.mojo</groupId> <Artifactid>Tomcat-maven-plugin</Artifactid> <Configuration> <URL>Http://localhost:8080/manager/text</URL> <Server>Tomcat</Server> <Path>/</Path> <username>Admin</username> <Password>Admin</Password> </Configuration> <version>1.1</version> </plugin>
3. Start Tomcat
4. Command-line mode
CD ${Engineering root directory}MVN Tomcat:redeploy
Eclipse maven Tomcat Deployment