<?xml version="1.0" encoding="UTF-8"?>
<!--
 | Copyright (C) 2008 Tim Kettler
 |
 | Licensed under the Apache License, Version 2.0 (the "License");
 | you may not use this file except in compliance with the License.
 | You may obtain a copy of the License at
 |
 |     http://www.apache.org/licenses/LICENSE-2.0
 |
 | Unless required by applicable law or agreed to in writing, software
 | distributed under the License is distributed on an "AS IS" BASIS,
 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | See the License for the specific language governing permissions and
 | limitations under the License.
-->
<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>

  <groupId>org.criticalsection</groupId>
  <artifactId>cs-parent</artifactId>
  <version>1</version>

  <packaging>pom</packaging>

  <name>CriticalSection.Org Open-Source Projects</name>

  <description>
    Top-Level POM for projects hosted on CriticalSection.Org. Defines the common settings for all projects.
  </description>

  <organization>
    <name>CriticalSection.Org</name>
    <url>http://criticalsection.org</url>
  </organization>

  <licenses>
    <license>
      <name>The Apache Software License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <distribution>repo</distribution>
    </license>
  </licenses>

  <url>http://criticalsection.org/projects</url>

  <inceptionYear>2008</inceptionYear>

  <scm>
    <connection>scm:monotone:local://tag/cs-parent-1</connection>
    <developerConnection>scm:monotone:local://tag/cs-parent-1</developerConnection>
  </scm>

  <distributionManagement>
    <!-- Site omitted - each project must provide its own -->
    <repository>
      <id>criticalsection.deployment</id>
      <name>CriticalSection.Org Release Distribution Repository</name>
      <url>dav:https://criticalsection.org/repositories/releases</url>
    </repository>
    <snapshotRepository>
      <id>criticalsection.deployment</id>
      <name>CriticalSection.Org Development Snapshot Repository</name>
      <url>dav:https://criticalsection.org/repositories/snapshots</url>
    </snapshotRepository>
  </distributionManagement>

  <build>
    <!-- Lock the versions of the commonly used plugins -->
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-resources-plugin</artifactId>
          <version>2.2</version>
          <configuration>
            <encoding>UTF-8</encoding>
          </configuration>
         </plugin>

        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-remote-resources-plugin</artifactId>
          <version>1.0</version>
        </plugin>

        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-assembly-plugin</artifactId>
          <version>2.2-beta-2</version>
        </plugin>

        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-install-plugin</artifactId>
          <version>2.2</version>
        </plugin>

        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-deploy-plugin</artifactId>
          <version>2.3</version>
        </plugin>

        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-release-plugin</artifactId>
          <version>2.0-beta-7</version>
          <!-- Include monotone-provider for Monotone support in maven SCM -->
	  <extensions>true</extensions>
	  <dependencies>
	    <dependency>
	      <groupId>org.criticalsection.maven</groupId>
 	      <artifactId>mtn-maven-scm-provider</artifactId>
	      <version>1.0-alpha-01</version>
	    </dependency>
	    <dependency>
	      <groupId>org.criticalsection.maven</groupId>
 	      <artifactId>mtn-maven-scm-translator</artifactId>
	      <version>1.0-alpha-01</version>
	    </dependency>
            <!-- Override the maven supplied plexus utils as the monotone provider depends on a newer one -->
	    <dependency>
	      <groupId>org.codehaus.plexus</groupId>
	      <artifactId>plexus-utils</artifactId>
	      <version>1.5.1</version>
	    </dependency>
	  </dependencies>
        </plugin>

        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-site-plugin</artifactId>
          <version>2.0-beta-6</version>
          <configuration>
            <inputEncoding>UTF-8</inputEncoding>
            <outputEncoding>UTF-8</outputEncoding>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
  </build>
</project>
