Maven-Jetty

<build>
		<finalName>web</finalName>
		<plugins>
		<!-- jetty -->
		<plugin>
			<groupId>org.mortbay.jetty</groupId>
			<artifactId>maven-jetty-plugin</artifactId>
			<version>6.1.10</version>
			<configuration>
				<contextPath>/web</contextPath>
			<webAppSourceDirectory>src/main/webapp</webAppSourceDirectory>
			<connectors>
		<connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
			<port>9999</port>
			</connector>
		</connectors>
		</configuration>
			</plugin>
		</plugins>
	</build>

 

你可能感兴趣的:(maven)