1, configuring Tomcat A, configuring JDK B, Catalina_home=C:\tomcat catalina_base=C:\tomcat2, tomcat configuration password C:\Program files\other\apache-tomcat-7.0. the\conf\tomcat-Users.xml<role rolename="Manager-script"/> <role rolename="Manager-gui"/> <role rolename="MANAGER-JMX"/> <user username="Admin"password="Admin"roles="MANAGER-GUI,MANAGER-SCRIPT,MANAGER-JMX"/>3, POM configuration<build> <finalName>s</finalName> <plugins> <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactid>tomcat7-maven-plugin</artifactid > <version>2.0</version> <configuration> <server>mytomcat</server> <ur L>http://localhost:8080/manager/text</url><contextReloadable>true</contextReloadable> </configuration> </plugin> </plugins> < ;/build>4, Project->run asRun configuration->Base Directory: Select Project Goals:tomcat Run
Eclipse maven TOMCAT7 Hot Deployment