Last active
December 15, 2015 22:39
-
-
Save seralf/5334128 to your computer and use it in GitHub Desktop.
jetty basic config for maven pom.xml ---- SEE ALSO for more details: http://wiki.eclipse.org/Jetty/Feature/Jetty_Maven_Plugin http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<plugin> | |
<groupId>org.mortbay.jetty</groupId> | |
<artifactId>jetty-maven-plugin</artifactId> | |
<configuration> | |
<jvmArgs>-Xmx1024</jvmArgs> | |
<scanIntervalSeconds>10</scanIntervalSeconds> | |
<connectors> | |
<connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector"> | |
<port>8888</port> | |
<maxIdleTime>60000</maxIdleTime> | |
</connector> | |
</connectors> | |
<webAppConfig> | |
<jettyEnvXml>jetty-env.xml</jettyEnvXml> | |
</webAppConfig> | |
</configuration> | |
<executions> | |
<execution> | |
<phase>test</phase> | |
<goals> | |
<goal>run-exploded</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<plugin> | |
<groupId>org.mortbay.jetty</groupId> | |
<artifactId>jetty-maven-plugin</artifactId> | |
<configuration> | |
<stopPort>9966</stopPort> | |
<stopKey>foo</stopKey> | |
<scanIntervalSeconds>10</scanIntervalSeconds> | |
<webApp> | |
<contextPath>/test</contextPath> | |
</webApp> | |
<connectors> | |
<connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector"> | |
<port>9090</port> | |
<maxIdleTime>60000</maxIdleTime> | |
</connector> | |
</connectors> | |
</configuration> | |
</plugin> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment