<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>2.5.5</version>
	</parent>

	<groupId>com.atlassian.bamboo.plugins</groupId>
	<artifactId>atlassian-bamboo-plugin-maven2</artifactId>
	<version>2.5.5</version>

	<packaging>jar</packaging>

	<name>Atlassian Bamboo Maven2 Plugin</name>
  <description>Maven2 plugin for Bamboo</description>
  <url>http://www.atlassian.com/software/bamboo/</url>

	<dependencies>
		<dependency>
			<groupId>com.atlassian.bamboo</groupId>
			<artifactId>atlassian-bamboo-core</artifactId>
		</dependency>
		<dependency>
			<groupId>com.atlassian.bamboo</groupId>
			<artifactId>atlassian-bamboo-web</artifactId>
		</dependency>
        <dependency>
            <groupId>org.apache.maven</groupId>
            <artifactId>maven-embedder</artifactId>
        </dependency>
	</dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.twdata.maven</groupId>
        <artifactId>maven-cli-plugin</artifactId>
        <version>0.6.2</version>
        <configuration>
          <commands>
            <pi>clean resources compile jar com.atlassian.maven.plugins:atlassian-pdk:install</pi>
            <pu>com.atlassian.maven.plugins:atlassian-pdk:uninstall</pu>
          </commands>
        </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>