Maven Tomcat插件现在主要有两个版本,tomcat-maven-plugin和tomcat7-maven-plugin,使用方式基本相同。
tomcat-maven-plugin 插件官网:
http://mojo.codehaus.org/tomcat-maven-plugin/plugin-info.html
tomcat7-maven-plugin 插件官网:
http://tomcat.apache.org/maven-plugin.html
1. tomcat-maven-plugin 插件使用
在pom.xml中加入下面代码:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>tomcat-maven-plugin</artifactId>
<version>1.1</version>
<configuration>
<path>/</path>
&l