1. 程式人生 > >Maven配置-jetty外掛

Maven配置-jetty外掛

Maven配置

jetty外掛

<plugin>
	<groupId>org.mortbay.jetty</groupId>
	<artifactId>jetty-maven-plugin</artifactId>
	<version>8.1.14.v20131031</version>
	<configuration>
		<scanIntervalSeconds>10</scanIntervalSeconds>
		<stopPort>9999</stopPort>
		<webAppConfig>
			<contextPath>/front</contextPath>
		</webAppConfig>
		<connectors>
			<connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
			        <port>9080</port>
				<maxIdleTime>60000</maxIdleTime>
			</connector>
		</connectors>
	</configuration>
</plugin>