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

  <parent>
    <groupId>com.atlassian.bamboo</groupId>
    <artifactId>atlassian-bamboo-components</artifactId>
    <version>6.1.0-m193</version>
  </parent>

  <artifactId>atlassian-user-crowd-provider</artifactId>

  <name>Atlassian Bamboo Crowd Atlassian User 1 Integration</name>
  <description>Interface for bamboo to standalone crowd.</description>

  <dependencies>

    <dependency>
      <groupId>com.atlassian.bamboo</groupId>
      <artifactId>atlassian-bamboo-api</artifactId>
    </dependency>

    <dependency>
      <groupId>com.atlassian.bamboo</groupId>
      <artifactId>atlassian-bamboo-core</artifactId>
    </dependency>

    <dependency>
      <groupId>com.atlassian.crowd</groupId>
      <artifactId>crowd-integration-client-rest</artifactId>
    </dependency>

    <dependency>
      <groupId>com.google.guava</groupId>
      <artifactId>guava</artifactId>
    </dependency>

    <dependency>
      <groupId>com.atlassian.crowd</groupId>
      <artifactId>crowd-integration-api</artifactId>
    </dependency>

    <dependency>
      <groupId>com.atlassian.user</groupId>
      <artifactId>atlassian-user-api</artifactId>
    </dependency>

    <dependency>
      <groupId>com.atlassian.user</groupId>
      <artifactId>atlassian-user-ldap</artifactId>
    </dependency>

    <dependency>
      <groupId>org.acegisecurity</groupId>
      <artifactId>acegi-security</artifactId>
    </dependency>

    <dependency>
      <groupId>com.atlassian.seraph</groupId>
      <artifactId>atlassian-seraph</artifactId>
    </dependency>

    <dependency>
      <groupId>com.atlassian.crowd</groupId>
      <artifactId>crowd-integration-seraph25</artifactId>
    </dependency>

    <dependency>
      <groupId>com.atlassian.spring</groupId>
      <artifactId>atlassian-spring</artifactId>
    </dependency>

    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>javax.servlet-api</artifactId>
      <scope>provided</scope>
    </dependency>

    <dependency>
      <groupId>commons-io</groupId>
      <artifactId>commons-io</artifactId>
    </dependency>

    <!-- Start Test Dependencies -->

    <dependency>
      <groupId>com.atlassian.bamboo</groupId>
      <artifactId>atlassian-bamboo-persistence</artifactId>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>com.atlassian.user</groupId>
      <artifactId>atlassian-user-hibernate3</artifactId>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>org.hibernate</groupId>
      <artifactId>hibernate-core</artifactId>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>org.hibernate</groupId>
      <artifactId>hibernate-ehcache</artifactId>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>net.sf.ehcache</groupId>
      <artifactId>ehcache</artifactId>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>hsqldb</groupId>
      <artifactId>hsqldb</artifactId>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-orm</artifactId>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-jdbc</artifactId>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>org.mockito</groupId>
      <artifactId>mockito-core</artifactId>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>cglib</groupId>
      <artifactId>cglib-nodep</artifactId>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>com.atlassian.cache</groupId>
      <artifactId>atlassian-cache-memory</artifactId>
      <scope>test</scope>
    </dependency>
    <!-- End Test Dependencies -->

  </dependencies>

  <profiles>
    <profile>
      <id>mssql</id>
      <properties>
        <maven.test.it.skip>true</maven.test.it.skip>
      </properties>
    </profile>
    <profile>
      <id>mysql</id>
      <properties>
        <maven.test.it.skip>true</maven.test.it.skip>
      </properties>
    </profile>
    <profile>
      <id>mysql-ec2</id>
      <properties>
        <maven.test.it.skip>true</maven.test.it.skip>
      </properties>
    </profile>
    <profile>
      <id>oracle</id>
      <properties>
        <maven.test.it.skip>true</maven.test.it.skip>
      </properties>
    </profile>
    <profile>
      <id>pgsql</id>
      <properties>
        <maven.test.it.skip>true</maven.test.it.skip>
      </properties>
    </profile>
  </profiles>

  <build>
    <plugins>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <excludes>
            <exclude>it/**/*.java</exclude>
          </excludes>
        </configuration>
      </plugin>
      <plugin>
        <groupId>com.atlassian.maven.plugins</groupId>
        <artifactId>maven-amps-plugin</artifactId>
        <executions>
          <execution>
            <phase>integration-test</phase>
            <goals>
              <goal>integration-test</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <skipITs>${maven.test.it.skip}</skipITs>
          <products>
            <product>
              <id>crowd</id>
              <version>${crowd.version}</version>
              <containerId>tomcat6x</containerId>
              <httpPort>4990</httpPort>
              <dataPath>${project.basedir}/src/test/amps/crowd-plugin-test-resources-for-atlassian-user-1-integration-tests.zip</dataPath>
            </product>
          </products>

          <testGroups>
            <testGroup>
              <id>crowd-test</id>
              <productIds>
                <productId>crowd</productId>
              </productIds>
              <includes>
                <include>it/**/*Test.class</include>
              </includes>
            </testGroup>
          </testGroups>
        </configuration>
      </plugin>
    </plugins>

  </build>
</project>
