<?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>org.sonatype.oss</groupId>
    <artifactId>oss-parent</artifactId>
    <version>7</version>
  </parent>
  <groupId>org.cloudhoist</groupId>
  <artifactId>parent-pom</artifactId>
  <version>0.1.2</version>
  <packaging>pom</packaging>
  <name>parent-pom</name>
  <description>parent pom for projects released to sonatype</description>
  <url>http://palletops.com</url>
  <inceptionYear>2010</inceptionYear>

  <licenses>
    <license>
      <name>Eclipse Public License</name>
      <url>http://www.eclipse.org/legal/epl-v10.html</url>
    </license>
  </licenses>

  <mailingLists>
    <mailingList>
      <name>pallet-clj</name>
      <subscribe>http://groups.google.com/group/pallet-clj</subscribe>
      <unsubscribe>http://groups.google.com/group/pallet-clj</unsubscribe>
      <post>pallet-clj@googlegroups.com</post>
      <archive>http://groups.google.com/group/pallet-clj</archive>
    </mailingList>
  </mailingLists>

  <scm>
    <connection>scm:git:git://github.com/pallet/org-cloudhoist-pom.git</connection>
    <developerConnection>scm:git:ssh://git@github.com/pallet/org-cloudhoist-pom.git</developerConnection>
    <url>https://github.com/pallet/org-cloudhoist-pom</url>
  </scm>

  <distributionManagement>
    <repository>
      <id>sonatype-nexus-staging</id>
      <url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
      <uniqueVersion>false</uniqueVersion>
    </repository>
    <snapshotRepository>
      <id>${snapshotRepository.id}</id>
      <url>${snapshotRepository.url}</url>
    </snapshotRepository>
  </distributionManagement>

  <build>
    <plugins>
      <plugin>
        <artifactId>maven-enforcer-plugin</artifactId>
        <executions>
          <execution>
            <id>enforce-banned-dependencies</id>
            <goals>
              <goal>enforce</goal>
            </goals>
            <configuration>
              <rules>
                <bannedDependencies>
                  <excludes>
                    <exclude>:maven-dependency-plugin</exclude>
                  </excludes>
                </bannedDependencies>
              </rules>
            </configuration>
          </execution>
          <execution>
            <id>enforce-java</id>
            <goals>
              <goal>enforce</goal>
            </goals>
            <configuration>
              <rules>
                <requireMavenVersion>
                  <version>[3.0.3,)</version>
                </requireMavenVersion>
              </rules>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-release-plugin</artifactId>
        <version>2.2.2</version>
        <configuration>
          <pushChanges>false</pushChanges>
          <localCheckout>true</localCheckout>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-install-plugin</artifactId>
        <version>2.3.1</version>
        <configuration>
          <updateReleaseInfo>true</updateReleaseInfo>
        </configuration>
      </plugin>
    </plugins>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.cloudhoist.plugin</groupId>
          <artifactId>zi</artifactId>
          <version>${zi.version}</version>
          <dependencies>
            <dependency>
              <groupId>${clojure.groupId}</groupId>
              <artifactId>clojure</artifactId>
              <version>${clojure.version}</version>
            </dependency>
            <dependency>
              <groupId>ritz</groupId>
              <artifactId>ritz</artifactId>
              <version>${ritz.version}</version>
            </dependency>
            <dependency>
              <groupId>codox</groupId>
              <artifactId>codox</artifactId>
              <version>${codox.version}</version>
            </dependency>
          </dependencies>
          <executions>
            <!-- setup zi to process sources and test sources, and run tests -->
            <execution>
              <id>default-resources</id>
              <phase>process-resources</phase>
              <goals>
                <goal>resources</goal>
              </goals>
            </execution>
            <execution>
              <id>default-test-resources</id>
              <phase>process-test-resources</phase>
              <goals>
                <goal>testResources</goal>
              </goals>
            </execution>
            <execution>
              <id>default-test</id>
              <phase>test</phase>
              <goals>
                <goal>test</goal>
              </goals>
            </execution>
            <execution>
              <id>default-site</id>
              <phase>site</phase>
              <goals>
                <goal>marginalia</goal>
                <goal>codox</goal>
              </goals>
              <configuration>
                <copyright>Copyright (c) 2010, 2011, 2012 Hugo Duncan</copyright>
                <webSrcDir>https://github.com/pallet/pallet/blob/</webSrcDir>
                <webHome>http://palletops.com/</webHome>
              </configuration>
            </execution>
          </executions>
        </plugin>
        <plugin>
          <artifactId>maven-jar-plugin</artifactId>
          <version>2.3.1</version>
        </plugin>
        <plugin>
          <!-- disable the Surefire testing plugin -->
          <artifactId>maven-surefire-plugin</artifactId>
          <version>2.12</version>
          <configuration>
            <skip>true</skip>
          </configuration>
        </plugin>
        <!-- disable pushing of changes on release -->
        <plugin>
          <artifactId>maven-release-plugin</artifactId>
          <version>2.2.2</version>
          <configuration>
            <pushChanges>false</pushChanges>
            <localCheckout>true</localCheckout>
          </configuration>
        </plugin>
        <!-- enable snapshots from source to mix with remote snapshots -->
        <plugin>
          <artifactId>maven-install-plugin</artifactId>
          <version>2.3.1</version>
          <configuration>
            <updateReleaseInfo>true</updateReleaseInfo>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
  </build>

  <profiles>
    <profile>
      <id>sonatype-release-profile-extension</id>
      <activation>
        <property>
          <name>performRelease</name>
          <value>true</value>
        </property>
      </activation>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-gpg-plugin</artifactId>
            <configuration>
              <keyName>${gpg.keyname}</keyName>
              <passphrase>${gpg.passphrase}</passphrase>
            </configuration>
            <executions>
              <execution>
                <id>sign-artifacts</id>
                <phase>verify</phase>
                <goals>
                  <goal>sign</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>

    <profile>
      <id>sonatype-repo-deploy</id>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
      <properties>
        <snapshotRepository.url>
          https://oss.sonatype.org/content/repositories/snapshots
        </snapshotRepository.url>
        <snapshotRepository.id>sonatype-nexus-snapshots</snapshotRepository.id>
      </properties>
    </profile>
  </profiles>

  <developers>
    <developer>
      <name>Hugo Duncan</name>
      <id>hugoduncan</id>
      <email>hugo -at- hugoduncan -dot- org</email>
      <roles>
        <role>PMC</role>
        <role>Developer</role>
      </roles>
      <timezone>-5</timezone>
    </developer>
  </developers>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <clojure.groupId>org.clojure</clojure.groupId>
    <clojure.version>1.2.1</clojure.version>
    <ritz.version>0.2.1</ritz.version>
    <zi.version>0.4.5</zi.version>
    <codox.version>0.4.0</codox.version>
  </properties>
</project>
