jetty-maven-plugin 8.1.15.v20140411

Below a sample config for new version of jetty plugin for maven.

<plugin>
	<groupId>org.mortbay.jetty</groupId>
	<artifactId>jetty-maven-plugin</artifactId>
	<version>8.1.15.v20140411</version>
	<configuration>
		<webApp>
			<contextPath>/myapp</contextPath>
		</webApp>	  	
		<reload>automatic</reload>
		<scanIntervalSeconds>1</scanIntervalSeconds>
		<connectors>
			<connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
				<port>8081</port>
				<maxIdleTime>60000</maxIdleTime>
			</connector>
		</connectors>    	
	</configuration>
</plugin>

Leave a Reply

Your email address will not be published. Required fields are marked *