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

  <parent>
    <groupId>com.atlassian.bamboo</groupId>
    <artifactId>atlassian-bamboo</artifactId>
    <version>5.7-atlassian-cache</version>
  </parent>

  <artifactId>atlassian-bamboo-components</artifactId>

  <packaging>pom</packaging>
  <version>5.7-atlassian-cache</version>
  <name>Atlassian Bamboo Components</name>
  <modules>
    <module>bamboo-agent</module>
    <module>bamboo-agent-bootstrap</module>
    <module>bamboo-agent-bootstrap-withdeps</module>
    <module>bamboo-agent-classserver</module>
    <module>bamboo-agent-core</module>
    <module>bamboo-agent-elastic</module>
    <module>bamboo-agent-elastic-shared</module>
    <module>bamboo-agent-elastic-server</module>
    <module>bamboo-agent-elastic-installer</module>
    <module>bamboo-agent-installer</module>
    <module>bamboo-agent-local</module>
    <module>bamboo-agent-remote</module>
    <module>bamboo-api</module>
    <module>bamboo-api-agent-bootstrap</module>
    <module>bamboo-charts</module>
    <module>bamboo-core</module>
    <module>bamboo-core-agent-bootstrap</module>
    <module>bamboo-language</module>
    <module>bamboo-license</module>
    <module>bamboo-maven-embedder</module>
    <module>bamboo-migration</module>
    <module>atlassian-user-crowd-provider</module>
    <module>bamboo-persistence</module>
    <module>bamboo-test-utils</module>
    <module>bamboo-upgrader</module>
    <module>bamboo-web</module>
    <module>bamboo-web-app</module>
    <module>bamboo-web-server</module>
    <module>bamboo-xml-utils</module>
    <module>bamboo-plugins</module>
    <module>bamboo-plugins2</module>
    <module>bamboo-deployments</module>
    <module>bamboo-deployments-api</module>
    <module>bamboo-deployments-test</module>
    <module>utils</module>

    <!-- Bundled v2.0 plugins -->
    <module>bamboo-bundled-plugins</module>

    <!-- Bundled plugins for agents -->
    <module>bamboo-plugins1-plugins</module>
  </modules>
  <profiles>
    <profile>
      <id>localRelease</id>
      <modules>
        <module>bamboo-installer</module>
      </modules>
    </profile>
    <profile>
      <id>release-profile</id>
      <modules>
        <module>bamboo-installer</module>
      </modules>
    </profile>

    <profile>
      <id>release</id>
      <modules>
        <module>bamboo-agent-elastic-assembly-boot</module>
        <module>bamboo-agent-elastic-assembly</module>
        <module>bamboo-installer</module>
      </modules>
    </profile>
    <profile>
      <id>ami-dev</id>
      <modules>
        <module>bamboo-agent-elastic-assembly-boot</module>
        <module>bamboo-agent-elastic-assembly</module>
      </modules>
    </profile>
    <profile>
      <id>functest</id>
      <properties>
        <!--not running plugin functional tests with -Pfunctest-->
        <skipITs>true</skipITs>
      </properties>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <configuration>
              <skip>true</skip>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>resttest</id>
      <properties>
        <!--not running plugin functional tests with -Presttest-->
        <skipITs>true</skipITs>
      </properties>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <configuration>
              <skip>true</skip>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>uitest</id>
      <properties>
        <!--not running plugin functional tests with -Puitest-->
        <skipITs>true</skipITs>
      </properties>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <configuration>
              <skip>true</skip>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>remoteAgentFuncTest</id>
      <properties>
        <!--not running plugin functional tests with -PremoteAgentFuncTest-->
        <skipITs>true</skipITs>
      </properties>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <configuration>
              <skip>true</skip>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>salIntegrationTest</id>
      <properties>
        <!--not running plugin functional tests with -PsalIntegrationTest-->
        <skipITs>true</skipITs>
      </properties>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <configuration>
              <skip>true</skip>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-resources-plugin</artifactId>
        <configuration>
          <escapeString>\</escapeString>
        </configuration>
      </plugin>
    </plugins>
    <resources>
      <resource>
        <directory>src/main/resources</directory>
        <filtering>true</filtering>
        <includes>
          <include>atlassian-plugin.xml</include>
        </includes>
      </resource>
      <resource>
        <directory>src/main/resources</directory>
        <filtering>false</filtering>
        <excludes>
          <exclude>atlassian-plugin.xml</exclude>
        </excludes>
      </resource>
    </resources>
  </build>

</project>