<?xml version="1.0" encoding="UTF-8"?>

<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/xsd/maven-4.0.0.xsd">

    <modelVersion>4.0.0</modelVersion>

    <groupId>jetty-testcase</groupId>
    <artifactId>jetty-testcase</artifactId>
    <packaging>war</packaging>
    <version>0.1-SNAPSHOT</version>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-failsafe-plugin</artifactId>
                <version>2.12</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>integration-test</goal>
                            <goal>verify</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.mortbay.jetty</groupId>
                <artifactId>jetty-maven-plugin</artifactId>
                <version>${jetty-maven-plugin.version}</version>
                <executions>
                    <execution>
                        <configuration>
                            <daemon>true</daemon>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                        <id>run</id>
                        <phase>pre-integration-test</phase>
                    </execution>
                    <execution>
                        <goals>
                            <goal>stop</goal>
                        </goals>
                        <id>stop</id>
                        <phase>post-integration-test</phase>
                    </execution>
                </executions>
                <configuration>
                    <stopKey>stop</stopKey>
                    <stopPort>8888</stopPort>
                    <useTestScope>true</useTestScope>
                    <useTestClasspath>true</useTestClasspath>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <dependencies>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
            <version>2.5</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit-dep</artifactId>
            <version>4.10</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>commons-io</groupId>
            <artifactId>commons-io</artifactId>
            <version>2.1</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.httpcomponents</groupId>
            <artifactId>httpclient</artifactId>
            <version>4.1.3</version>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

        <!-- good versions -->
        <!--<jetty-maven-plugin.version>7.5.1.v20110908</jetty-maven-plugin.version>-->
        <!--<jetty-maven-plugin.version>8.0.0.v20110901</jetty-maven-plugin.version>-->
        <jetty-maven-plugin.version>8.0.1.v20110908</jetty-maven-plugin.version>

        <!-- bad versions -->
        <!--<jetty-maven-plugin.version>7.5.2.v20111006</jetty-maven-plugin.version>-->
        <!--<jetty-maven-plugin.version>7.5.3.v20111011</jetty-maven-plugin.version>-->
        <!--<jetty-maven-plugin.version>7.5.4.v20111024</jetty-maven-plugin.version>-->
        <!--<jetty-maven-plugin.version>7.6.0.v20120127</jetty-maven-plugin.version>-->
        <!--<jetty-maven-plugin.version>7.6.1.v20120215</jetty-maven-plugin.version>-->
        <!--<jetty-maven-plugin.version>8.0.3.v20111011</jetty-maven-plugin.version>-->
        <!--<jetty-maven-plugin.version>8.0.4.v20111024</jetty-maven-plugin.version>-->
        <!--<jetty-maven-plugin.version>8.1.0.v20120127</jetty-maven-plugin.version>-->
        <!--<jetty-maven-plugin.version>8.1.1.v20120215</jetty-maven-plugin.version>-->
    </properties>

</project>
