<?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-components</artifactId>
    <version>6.6.0</version>
  </parent>

  <artifactId>atlassian-bamboo-plugins</artifactId>
  <packaging>pom</packaging>

  <name>Atlassian Bamboo Plugins Parent</name>
  <description>Plugins shipped with Bamboo</description>

  <!-- only plugins type 1 should be added here -->
  <modules>
    <!-- Need to add in-house plugins here -->
    <module>bamboo-labeller-plugin-2</module>
    <module>bamboo-vcsversion-plugin</module>
    <module>bamboo-plugin-fisheye</module>
    <module>bamboo-plugin-triggercondition</module>
    <module>bamboo-plugin-grails</module>
    <module>bamboo-plugin-ant</module>
    <module>bamboo-plugin-scripttask</module>
    <module>bamboo-plugin-stash</module> <!-- legacy plugin just for compatibility reasons -->
    <module>bamboo-plugin-php</module>
    <module>bamboo-plugin-vcs</module>
    <module>bamboo-plugin-ssh</module>
  </modules>

  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.twdata.maven</groupId>
          <artifactId>maven-cli-plugin</artifactId>
          <version>1.0.4</version>
          <configuration>
            <commands>
              <!--<pi>clean resources compile jar org.apache.felix:maven-bundle-plugin:bundle com.atlassian.maven.plugins:atlassian-pdk:install</pi>-->
              <!--<pu>com.atlassian.maven.plugins:atlassian-pdk:uninstall</pu>-->
              <package>clean resources compile jar</package>
            </commands>
          </configuration>
        </plugin>

        <!--copied from com.atlassian.pom:atlassian-plugin-pom:14-->
        <plugin>
          <artifactId>maven-surefire-plugin</artifactId>
          <configuration>
            <skip>${maven.test.unit.skip}</skip>
            <excludes>
              <exclude>it/**/*</exclude>
              <exclude>**/Abstract*</exclude>
              <exclude>**/Mock*</exclude>
              <exclude>**/*$*</exclude>
            </excludes>
          </configuration>
          <executions>
            <execution>
              <id>acceptance_tests</id>
              <phase>integration-test</phase>
              <goals>
                <goal>test</goal>
              </goals>
              <configuration>
                <skip>${maven.test.it.skip}</skip>
                <excludes>
                  <exclude>none</exclude>
                  <exclude>**/Abstract*</exclude>
                  <exclude>**/Mock*</exclude>
                  <exclude>**/*$*</exclude>
                </excludes>
                <includes>
                  <include>it/**/*java</include>
                </includes>
              </configuration>
            </execution>
          </executions>
        </plugin>
      </plugins>
    </pluginManagement>

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