码迷,mamicode.com
首页 > 其他好文 > 详细

tomcat7和jetty启动的pom.xml配置

时间:2015-07-18 12:36:26      阅读:116      评论:0      收藏:0      [点我收藏+]

标签:tomcat   maven   jetty   

                   <plugins>
		
			<!-- tomcat7 -->
			<plugin>
				<groupId>org.apache.tomcat.maven</groupId>
				<artifactId>tomcat7-maven-plugin</artifactId>
				<version>2.2</version>
				<configuration>
					<useBodyEncodingForURI>true</useBodyEncodingForURI>
					<path>/</path>
				</configuration>
			</plugin>
			<!-- jetty -->
			<plugin>
				<groupId>org.mortbay.jetty</groupId>
				<artifactId>jetty-maven-plugin</artifactId>
				<version>7.6.15.v20140411</version>
				<configuration>
					<useTestClasspath>true</useTestClasspath>
					<webAppConfig>
						<contextPath>/</contextPath>
					</webAppConfig>
				</configuration>
			</plugin>
		</plugins> 

jetty的启动方式

jetty:run -Djetty.port=8081

tomcat7的启动方式

tomcat7:run -Dmaven.tomcat.port=8080



版权声明:本文为博主原创文章,未经博主允许不得转载。

tomcat7和jetty启动的pom.xml配置

标签:tomcat   maven   jetty   

原文地址:http://blog.csdn.net/suifengerbi/article/details/46940765

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!