<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>com.atlassian.bamboo</groupId>
    <artifactId>atlassian-bamboo</artifactId>
    <version>2.2-lm2</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>

  <groupId>com.atlassian.bamboo</groupId>
  <artifactId>atlassian-bamboo-web-app</artifactId>
  <version>2.2-lm2</version>

  <packaging>war</packaging>

  <name>Atlassian Bamboo Web Application</name>

  <dependencies>

    <!-- Module dependencies -->
    <dependency>
      <groupId>com.atlassian.bamboo</groupId>
      <artifactId>atlassian-bamboo-web</artifactId>
    </dependency>

    <!-- Bamboo SHIPPED PLUGINS - ensure parent pom.xml is also updated.-->
    <dependency>
      <groupId>com.atlassian.bamboo.plugins</groupId>
      <artifactId>atlassian-bamboo-plugin-autofavourite</artifactId>
    </dependency>

    <dependency>
      <groupId>com.atlassian.bamboo.plugins.repository</groupId>
      <artifactId>atlassian-bamboo-plugin-vcsversion</artifactId>
    </dependency>

    <dependency>
      <groupId>com.atlassian.bamboo.plugins.labeller</groupId>
      <artifactId>atlassian-bamboo-plugin-labeller</artifactId>
    </dependency>

    <dependency>
      <groupId>com.atlassian.bamboo.plugins.buildnumberstamper</groupId>
      <artifactId>atlassian-bamboo-plugin-buildnumberstamper</artifactId>
    </dependency>

    <dependency>
      <groupId>com.atlassian.bamboo.plugins.nant</groupId>
      <artifactId>nant_builder</artifactId>
      <version>2.1.0</version>
    </dependency>

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

    <!-- Hack for some weird mvn bug -->
    <dependency>
      <groupId>cglib</groupId>
      <artifactId>cglib-nodep</artifactId>
    </dependency>

    <!--another hack for weird mvn bug - testtools with test scope excludes this-->
    <dependency>
      <groupId>dom4j</groupId>
      <artifactId>dom4j</artifactId>
    </dependency>


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

  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-dependency-plugin</artifactId>
        <executions>
          <execution>
            <phase>compile</phase>
            <goals>
              <goal>copy</goal>
            </goals>
            <configuration>
              <artifactItems>
                <artifactItem>
                  <groupId>com.atlassian.bamboo</groupId>
                  <artifactId>bamboo-agent</artifactId>
                  <outputDirectory>${project.build.directory}/${project.artifactId}/admin/agent</outputDirectory>
                </artifactItem>
              </artifactItems>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

</project>
