maven中使用tomcat

需要在WEB模块的POM配置文件中加如下
<build>
    <finalName>ssm-web</finalName>
    <plugins>
			<plugin>
				<groupId>org.apache.tomcat.maven</groupId>
				<artifactId>tomcat6-maven-plugin</artifactId>
				<version>2.0-beta-1</version>
				<configuration>
					<url>http://localhost:8080/manager/html</url>
					<server>tomcat-local</server>
					<contextReloadable>false</contextReloadable>
					<uriEncoding>UTF-8</uriEncoding>
					<port>8888</port>
					<path>/ssm</path>
				</configuration>
			</plugin>
		</plugins>
  </build>

你可能感兴趣的:(tomcat)