Skip to content

Instantly share code, notes, and snippets.

@geowarin
Last active December 11, 2015 11:09
Show Gist options
  • Save geowarin/4591942 to your computer and use it in GitHub Desktop.
Save geowarin/4591942 to your computer and use it in GitHub Desktop.
Basic configuration for the jetty-maven-plugin (http://wiki.eclipse.org/Jetty/Feature/Jetty_Maven_Plugin)
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>8.1.8.v20121106</version>
<configuration>
<scanIntervalSeconds>1</scanIntervalSeconds>
<!-- Context path is / by default -->
<!-- <webApp> -->
<!-- <contextPath>/${project.artifactId}</contextPath> -->
<!-- </webApp> -->
<connectors>
<!-- or org.eclipse.jetty.server.bio.SocketConnector to avoid file locking on windows -->
<connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
<port>8080</port>
</connector>
</connectors>
</configuration>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment