<?xml version="1.0" encoding="UTF-8"?>
<!--
   Apache Maven 2 POM generated by Apache Ivy
   http://ant.apache.org/ivy/
   Apache Ivy version: 2.2.0 20100923230623
-->
<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>org.terracotta</groupId>
    <artifactId>build-parent</artifactId>
    <version>3.7.3</version>
    <relativePath>../build-parent</relativePath>
  </parent>
  
  <groupId>org.terracotta.internal</groupId>
  <artifactId>build-data</artifactId>
  <packaging>jar</packaging>
  <name>build-data</name>
  
  <properties>
    <includeSnapshots>false</includeSnapshots>
    <dataFileUrl>http://www.terracotta.org/download/reflector/releases/tim-get/3/index.xml.gz</dataFileUrl>
    <relativeUrlBase>http://www.terracotta.org/download/reflector/releases</relativeUrlBase>
  </properties>

  <build>
    <plugins>
      <plugin>
        <groupId>org.terracotta</groupId>
        <artifactId>maven-forge-plugin</artifactId>
        <configuration>
          <rootPath>${basedir}/..</rootPath>
          <eeRootPath>${basedir}/../..</eeRootPath>
        </configuration>
        <executions>
          <execution>
            <id>create-build-info</id>
            <goals>
              <goal>buildinfo</goal>
            </goals>
            <phase>generate-resources</phase>
          </execution>
        </executions>
      </plugin>       
      <plugin>
        <groupId>com.github.goldin</groupId>
        <artifactId>properties-maven-plugin</artifactId>
        <version>0.2.3.8</version>
        <executions>
          <execution>
            <id>set-properties</id>
            <phase>validate</phase>
            <goals>
              <goal>set-properties</goal>
            </goals>
            <configuration>
              <runIf>{{ project.version.endsWith( 'SNAPSHOT' ) }}</runIf>
              <properties>
                <property>
                  <name>includeSnapshots</name>
                  <value>true</value>
                </property>
                <property>
                  <name>dataFileUrl</name>
                  <value>http://www.terracotta.org/download/reflector/snapshots/tim-get/3/index.xml.gz</value>
                </property>
                <property>
                  <name>relativeUrlBase</name>
                  <value>http://www.terracotta.org/download/reflector/snapshots</value>
                </property>             
              </properties>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
    <pluginManagement>
      <plugins>
        <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
        <plugin>
          <groupId>org.eclipse.m2e</groupId>
          <artifactId>lifecycle-mapping</artifactId>
          <version>1.0.0</version>
          <configuration>
            <lifecycleMappingMetadata>
              <pluginExecutions>
                <pluginExecution>
                  <pluginExecutionFilter>
                    <groupId>com.github.goldin</groupId>
                    <artifactId>properties-maven-plugin</artifactId>
                    <versionRange>[0.2.3.8,)</versionRange>
                    <goals>
                      <goal>set-properties</goal>
                    </goals>
                  </pluginExecutionFilter>
                  <action>
                    <ignore/>
                  </action>
                </pluginExecution>
              </pluginExecutions>
            </lifecycleMappingMetadata>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
  </build>
</project>
