<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">
  <parent>
    <groupId>org.mortbay.jetty</groupId>
    <artifactId>jetty-integration-project</artifactId>
    <version>8.0.0.M2</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.mortbay.jetty</groupId>
  <artifactId>test-annotation-webapp</artifactId>
  <packaging>war</packaging>
  <name>Jetty :: Annotations Test Webapp</name>
  <build>
    <plugins>
       <plugin>
         <artifactId>maven-antrun-plugin</artifactId>
         <executions>
           <execution>
            <id>generate-xml-files</id>
            <phase>process-resources</phase>
            <configuration>
              <tasks>
                <concat destfile="${project.build.directory}/plugin-context.xml">
                  <filelist dir="src/main/templates/" files="plugin-context-header.xml,env-definitions.xml" />
                </concat>
                <concat destfile="${project.build.directory}/contexts/test-annotations.xml">
                  <filelist dir="src/main/templates/" files="annotations-context-header.xml,env-definitions.xml" />
                </concat>
              </tasks>
            </configuration>
            <goals>
              <goal>run</goal>
            </goals>
           </execution>
         </executions>
       </plugin>
       <plugin>
        <artifactId>maven-resources-plugin</artifactId>
        <executions>
          <execution>
            <id>copy-transaction-properties</id>
            <phase>process-resources</phase>
            <goals>
              <goal>copy-resources</goal>
            </goals>
            <configuration>
              <outputDirectory>${project.build.directory}/resources</outputDirectory>
              <resources>
                <resource>
                  <directory>src/main/config/resources</directory>
                  <includes><include>**/transactions.properties</include></includes>
                  <filtering>true</filtering>
                </resource>
              </resources>
            </configuration>
          </execution>
        </executions>
      </plugin>
       <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-assembly-plugin</artifactId>
          <version>2.2-beta-3</version>
          <executions>
            <execution>
              <phase>package</phase>
              <goals>
                <goal>single</goal>
              </goals>
              <configuration>
                <descriptors>
                  <descriptor>${basedir}/src/main/assembly/config.xml</descriptor>
                </descriptors>
              </configuration>
            </execution>
          </executions>
       </plugin>
      <plugin>
        <groupId>org.mortbay.jetty</groupId>
        <artifactId>jetty-maven-plugin</artifactId>
        <version>${project.version}</version>
        <configuration>
          <scanIntervalSeconds>10</scanIntervalSeconds>
          <useTestClasspath>true</useTestClasspath>
         <webAppXml>${project.build.directory}/plugin-context.xml</webAppXml>
         <webAppConfig>
           <war>src/main/webapp</war>
           <descriptor>src/main/webapp/WEB-INF/web.xml</descriptor>
           <contextPath>/test-annotations</contextPath>
            <jettyEnvXml>${basedir}/src/main/webapp/WEB-INF/jetty-env.xml</jettyEnvXml>
         </webAppConfig>
          <loginServices>
            <loginService implementation="org.eclipse.jetty.security.HashLoginService">
              <name>Test Realm</name>
              <config>src/etc/realm.properties</config>
            </loginService>
          </loginServices>
        </configuration>
        <dependencies>
          <dependency>
            <groupId>com.atomikos</groupId>
            <artifactId>atomikos-util</artifactId>
            <version>3.6.4</version>
          </dependency>
          <dependency>
            <groupId>com.atomikos</groupId>
            <artifactId>transactions-api</artifactId>
            <version>3.6.4</version>
            </dependency>
            <dependency>
              <groupId>com.atomikos</groupId>
              <artifactId>transactions</artifactId>
              <version>3.6.4</version>
            </dependency>
            <dependency>
              <groupId>com.atomikos</groupId>
              <artifactId>transactions-jdbc</artifactId>
              <version>3.6.4</version>
            </dependency>
            <dependency>
              <groupId>com.atomikos</groupId>
              <artifactId>transactions-jta</artifactId>
              <version>3.6.4</version>
            </dependency>
            <dependency>
               <groupId>org.apache.derby</groupId>
               <artifactId>derby</artifactId>
               <version>10.4.1.3</version>
             </dependency>
             <dependency>
               <groupId>org.apache.derby</groupId>
               <artifactId>derbytools</artifactId>
               <version>10.4.1.3</version>
             </dependency>
        </dependencies>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>org.apache.geronimo.specs</groupId>
      <artifactId>geronimo-jta_1.1_spec</artifactId>
      <version>1.1.1</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.eclipse.jetty</groupId>
      <artifactId>jetty-server</artifactId>
      <version>${jetty-version}</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>javax.mail</groupId>
      <artifactId>mail</artifactId>
      <version>1.4</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>${servlet.spec.groupId}</groupId>
      <artifactId>${servlet.spec.artifactId}</artifactId>
      <version>${servlet.spec.version}</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.geronimo.specs</groupId>
      <artifactId>geronimo-annotation_1.0_spec</artifactId>
      <version>1.1.1</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.mortbay.jetty</groupId>
      <artifactId>test-container-initializer</artifactId>
      <version>${project.version}</version>
    </dependency>
    <dependency>
      <groupId>org.mortbay.jetty</groupId>
      <artifactId>test-fragment</artifactId>
      <version>${project.version}</version>
    </dependency>
    <dependency>
      <groupId>org.eclipse.jetty</groupId>
      <artifactId>jetty-util</artifactId>
      <version>${jetty-version}</version>
    </dependency>
  </dependencies>
</project>
