tomcat 6/7 maven 自动发布+热部署方法

 1 <plugin>

 2      <groupId>org.apache.tomcat.maven</groupId>

 3      <artifactId>tomcat7-maven-plugin</artifactId>

 4      <version>2.0-beta-1</version>

 5      <configuration>

 6        <uriEncoding>utf-8</uriEncoding>

 7        <port>80</port>

 8        <path>/</path>

 9      </configuration>

10 </plugin>

启动方式: tomcat7:run 或者 tomcat6:run

本地无需安装tomcat,会自动下载安装,用着很爽.

你可能感兴趣的:(tomcat)