<?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>

  <parent>
    <groupId>org.jboss.arquillian.container</groupId>
    <artifactId>arquillian-tomcat-managed-parent</artifactId>
    <version>1.0.1.Final</version>
    <relativePath>../tomcat-managed-parent/pom.xml</relativePath>
  </parent>

  <artifactId>arquillian-tomcat-managed-7</artifactId>
  <name>Arquillian Tomcat Managed 7.x Container</name>

  <properties>

    <tomcat.major.version>7</tomcat.major.version>
    <tomcat.version>${tomcat.major.version}.0.73</tomcat.version>

    <test.catalina.home>
      ${project.build.directory}/cargo/installs/apache-tomcat-${tomcat.version}/apache-tomcat-${tomcat.version}
    </test.catalina.home>
    <test.catalina.base>${project.build.directory}/cargo/configurations/tomcat${tomcat.major.version}x
    </test.catalina.base>

  </properties>

  <dependencies>

    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>javax.servlet-api</artifactId>
      <version>3.0.1</version>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>org.jboss.weld.servlet</groupId>
      <artifactId>weld-servlet</artifactId>
      <scope>test</scope>
    </dependency>

  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.codehaus.cargo</groupId>
        <artifactId>cargo-maven2-plugin</artifactId>
        <executions>
          <execution>
            <id>install-container</id>
            <configuration>
              <container>
                <containerId>tomcat${tomcat.major.version}x</containerId>
                <zipUrlInstaller>
                  <url>
                    http://archive.apache.org/dist/tomcat/tomcat-${tomcat.major.version}/v${tomcat.version}/bin/apache-tomcat-${tomcat.version}.zip
                  </url>
                </zipUrlInstaller>
              </container>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>
