<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">
  <properties>
    <forgeTags>Parent POM</forgeTags>
  </properties>

  <modelVersion>4.0.0</modelVersion>
  <organization>
    <name>Terracotta, Inc.</name>
    <url>http://www.terracotta.org/</url>
  </organization>

  <groupId>org.terracotta.forge</groupId>
  <artifactId>forge-parent</artifactId>
  <version>1.0.13</version>
  <packaging>pom</packaging>

  <name>forge-parent</name>
  <description>Parent POM for Terracotta Forge projects</description>
  <url>http://forge.terracotta.org/</url>

  <scm>
    <connection>scm:svn:http://svn.terracotta.org/svn/forge/projects/forge-parent/tags/release-1.0.13</connection>
    <developerConnection>scm:svn:https://svn.terracotta.org/repo/forge/projects/forge-parent/tags/release-1.0.13</developerConnection>
    <url>http://svn.terracotta.org/svn/forge/projects/forge-parent/tags/release-1.0.13</url>
  </scm>

  <profiles>
    <profile>
      <id>snapshot</id>
      <distributionManagement>
        <repository>
          <id>forge-artifacts</id>
          <name>Project Artifacts Repository</name>
          <!-- url>kong::default::file:///shares/forge-artifacts/snapshots</url -->
          <!-- url>${distributionManagement.repository.url}</url -->
          <url>${tc.distributionManagement.repository.url}</url>
        </repository>
        <site>
          <id>forge-site</id>
          <name>Project Sites Server</name>
          <url>${tc.distributionManagement.site.url}</url>
        </site>
      </distributionManagement>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-deploy-plugin</artifactId>
            <configuration>
              <altDeploymentRepository>${tc.altDeploymentRepository}</altDeploymentRepository>
              <updateReleaseInfo>false</updateReleaseInfo>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>release</id>
      <distributionManagement>
        <repository>
          <id>forge-artifacts</id>
          <name>Project Artifacts Repository</name>
          <!-- url>kong::default::file:///shares/forge-artifacts/releases</url -->
          <!-- url>${distributionManagement.repository.url}</url -->
          <url>${tc.distributionManagement.repository.url}</url>
        </repository>
        <site>
          <id>forge-site</id>
          <name>Project Sites Server</name>
          <url>${tc.distributionManagement.site.url}</url>
        </site>
      </distributionManagement>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-deploy-plugin</artifactId>
            <configuration>
              <altDeploymentRepository>${tc.altDeploymentRepository}</altDeploymentRepository>
              <updateReleaseInfo>true</updateReleaseInfo>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>

  <issueManagement>
    <system>JIRA</system>
    <url>https://jira.terracotta.org/jira/browse/FORGE/component/${artifactId}</url>
  </issueManagement>

  <developers>
    <developer>
      <id>terracotta</id>
      <name>Terracotta</name>
      <email>tc-dev@lists.terracotta.org</email>
      <url>http://www.terracotta.org</url>
      <organization>Terracotta, Inc.</organization>
      <organizationUrl>http://www.terracotta.org</organizationUrl>
      <roles>
        <role>developer</role>
      </roles>
      <timezone>-6</timezone>
    </developer>
  </developers>

  <mailingLists>
    <mailingList>
      <name>Forge Dev List</name>
      <subscribe>tc-forge-dev-subscribe@terracotta.org</subscribe>
      <unsubscribe>tc-forge-dev-unsubscribe@terracotta.org</unsubscribe>
    </mailingList>
    <mailingList>
      <name>Forge User List</name>
      <subscribe>tc-forge-user-subscribe@terracotta.org</subscribe>
      <unsubscribe>tc-forge-user-unsubscribe@terracotta.org</unsubscribe>
    </mailingList>
    <mailingList>
      <name>Forge Announce List</name>
      <subscribe>tc-forge-announce-subscribe@terracotta.org</subscribe>
      <unsubscribe>tc-forge-announce-unsubscribe@terracotta.org</unsubscribe>
    </mailingList>
  </mailingLists>

  <licenses>
    <license>
      <name>Terracotta Public License</name>
      <url>http://www.terracotta.org/license.txt</url>
    </license>
  </licenses>

  <reporting>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-project-info-reports-plugin</artifactId>
        <version>2.1</version>
        <reportSets>
          <reportSet>
            <reports>
              <report>index</report>
              <report>dependencies</report>
              <report>issue-tracking</report>
              <report>mailing-list</report>
              <report>scm</report>
              <report>license</report>
              <report>project-team</report>
              <!-- report>cim</report -->
            </reports>
          </reportSet>
        </reportSets>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>2.4</version>
        <configuration>
          <aggregate>true</aggregate>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jxr-plugin</artifactId>
        <version>2.1</version>
      </plugin>
    </plugins>
  </reporting>

  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.2</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>log4j</groupId>
      <artifactId>log4j</artifactId>
      <version>1.2.9</version>
    </dependency>
  </dependencies>

  <build>
    <extensions>
      <extension>
        <groupId>org.apache.maven.wagon</groupId>
        <artifactId>wagon-ssh-external</artifactId>
        <version>1.0-alpha-6</version>
      </extension>
    </extensions>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>1.5</source>
          <target>1.5</target>
        </configuration>
      </plugin>
    </plugins>
  </build>

  <repositories>
    <repository>
      <id>terracotta-repository</id>
      <url>http://www.terracotta.org/download/reflector/maven2</url>
      <releases>
        <enabled>true</enabled>
      </releases>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </repository>
  </repositories>
  <pluginRepositories>
    <pluginRepository>
      <id>terracotta-repository</id>
      <url>http://www.terracotta.org/download/reflector/maven2</url>
      <releases>
        <enabled>true</enabled>
      </releases>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </pluginRepository>
  </pluginRepositories>

  <!-- Include empty distributionManagement section so that we can specify
       deployment repository using the -DaltDeploymentRepository option with
       the mvn deploy command. -->
  <distributionManagement>
    <repository>
      <id />
      <name />
      <url />
    </repository>
  </distributionManagement>
</project>