-
-
Save tomjack/64228e1c6998136348f7 to your computer and use it in GitHub Desktop.
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
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 | |
http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>foo.bar</groupId> | |
<artifactId>baz</artifactId> | |
<packaging>jar</packaging> | |
<version>1.0-SNAPSHOT</version> | |
<name>baz</name> | |
<url>http://baz.com/</url> | |
<dependencies> | |
<dependency> | |
<groupId>junit</groupId> | |
<artifactId>junit</artifactId> | |
<version>3.8.1</version> | |
<scope>test</scope> | |
</dependency> | |
</dependencies> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.mortbay.jetty</groupId> | |
<artifactId>maven-jetty-plugin</artifactId> | |
<configuration> | |
<scanIntervalSeconds>10</scanIntervalSeconds> | |
<!-- Configure the webapp --> | |
<contextPath>/biggerstrongerbetterfaster</contextPath> | |
<tmpDir>target/not/necessary</tmpDir> | |
<webDefaultXml>src/main/resources/webdefault.xml</webDefaultXml> | |
<overrideWebXml>src/main/resources/override-web.xml</overrideWebXml> | |
<!-- OR, as of jetty6.1.6rc0, you can use the webAppConfig element instead | |
<webAppConfig> | |
<contextPath>/test</contextPath> | |
<tempDirectory>${project.build.directory}/work</tempDirectory> | |
<defaultsDescriptor>src/main/resources/webdefault.xml</defaultsDescriptor> | |
<overrideDescriptor>src/main/resources/override-web.xml</overrideDescriptor> | |
</webAppConfig> | |
--> | |
<!-- configure the container --> | |
<jettyConfig>/my/special/jetty.xml</jettyConfig> | |
<connectors> | |
<connector implementation="org.mortbay.jetty.nio.SelectChannelConnector"> | |
<port>9090</port> | |
<maxIdleTime>60000</maxIdleTime> | |
</connector> | |
</connectors> | |
<userRealms> | |
<userRealm implementation="org.mortbay.jetty.security.HashUserRealm"> | |
<name>Test Realm</name> | |
<config>etc/realm.properties</config> | |
</userRealm> | |
</userRealms> | |
<requestLog implementation="org.mortbay.jetty.NCSARequestLog"> | |
<filename>target/yyyy_mm_dd.request.log</filename> | |
<retainDays>90</retainDays> | |
<append>true</append> | |
<extended>false</extended> | |
<logTimeZone>GMT</logTimeZone> | |
</requestLog> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment