本文介绍: 在maven中使用tomcat7插件

1、在pom.xml中添加tomcat7插件

    <build>
		

			<!-- Embedded Apache Tomcat required for testing war -->

			<plugin>
				<groupId>org.apache.tomcat.maven</groupId>
				<artifactId>tomcat7-maven-plugin</artifactId>
				<version>2.2</version>
				<configuration>
					<path>/</path>
				</configuration>
			</plugin>
		</plugins>
	</build>

2、配置maven build

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注