运行maven项目

RUN AS配置:

maven配置:

Base directroy:选择项目

Goals:

tomcat7:run

tomcat7为pom.xml配置文件中tomcat插件的Server标签值

plugins标签中

<plugin>
				<groupId>org.apache.tomcat.maven</groupId>
				<artifactId>tomcat7-maven-plugin</artifactId>
				<version>2.1</version>
				<configuration>
					<port>8080</port>
					<path>/</path>
					<uriEncoding>UTF-8</uriEncoding>
					<server>tomcat7</server>
				</configuration>
			</plugin>

猜你喜欢

转载自blog.csdn.net/qq_42252552/article/details/83004965