eclipse maven tomcat7 热部署
1、配置tomcat a、配置jdk b、CATALINA_HOME=c:\tomcat CATALINA_BASE=c:\tomcat 2、tomcat配置密码 C:\Program Files\other\apache-tomcat-7.0.69\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配置 <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> <url>http://localhost:8080/manager/text</url> <contextReloadable>true</contextReloadable> </configuration> </plugin> </plugins> </build> 4、项目->run as -> run configuration- > Base directory:选项目 goals:tomcat run