<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/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>


  <groupId>org.abstractj.libmatthew</groupId>
  <artifactId>libmatthew-parent</artifactId>
  <version>0.8.0</version>
  <packaging>pom</packaging>

  <name>libmatthew</name>
  <url>http://github.com/abstractj/libmatthew-java</url>

  <parent>
    <groupId>org.sonatype.oss</groupId>
    <artifactId>oss-parent</artifactId>
    <version>7</version>
  </parent>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

    <!-- Minimum JDK version required -->
    <jdk.version>1.5</jdk.version>

    <!-- Minimum Maven version required to build the project -->
    <maven.version>3.0.5</maven.version>

    <!-- Maven plugins -->
    <resources-plugin.version>2.6</resources-plugin.version>
    <compiler-plugin.version>2.3.2</compiler-plugin.version>
    <source-plugin.version>2.1.2</source-plugin.version>
    <javadoc-plugin.version>2.8.1</javadoc-plugin.version>
    <enforcer-plugin.version>1.1</enforcer-plugin.version>
    <release-plugin.version>2.4</release-plugin.version>
    <gpg-plugin.version>1.4</gpg-plugin.version>

    <!-- Versions -->

    <project.cgi.version>0.6.1-SNAPSHOT</project.cgi.version>
    <project.hexdump.version>0.2.1-SNAPSHOT</project.hexdump.version>
    <project.debug.version>1.1.1-SNAPSHOT</project.debug.version>
    <project.unix.version>0.5.1-SNAPSHOT</project.unix.version>
    <project.io.version>0.1.1-SNAPSHOT</project.io.version>

  </properties>

  <scm>
    <connection>scm:git:git@github.com:abstractj/libmatthew-java.git</connection>
    <developerConnection>scm:git:git@github.com:abstractj/libmatthew-java.git</developerConnection>
    <url>https://github.com/abstractj/libmatthew-java</url>
    <tag>0.8.0</tag>
  </scm>

  <distributionManagement>
    <repository>
      <id>sonatype-nexus-staging</id>
      <name>Sonatype Staging Repository</name>
      <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
    </repository>
  </distributionManagement>

  <licenses>
    <license>
      <name>MIT License (Expat)</name>
      <url>http://opensource.org/licenses/mit-license.php</url>
      <distribution>repo</distribution>
    </license>
  </licenses>

  <modules>
    <module>debug</module>
    <module>hexdump</module>
    <module>unix</module>
    <module>cgi</module>
    <module>io</module>
    <module>libcgi</module>
    <module>libunix</module>
  </modules>

  <dependencyManagement>
    <dependencies>
      <dependency>
          <groupId>org.abstractj.libmatthew</groupId>
          <artifactId>cgi</artifactId>
          <version>0.6.1</version>
      </dependency>
      <dependency>
        <groupId>org.abstractj.libmatthew</groupId>
        <artifactId>hexdump</artifactId>
        <version>0.2.1</version>
      </dependency>
      <dependency>
        <groupId>org.abstractj.libmatthew</groupId>
        <artifactId>debug</artifactId>
        <version>1.1.1</version>
      </dependency>
      <dependency>
        <groupId>org.abstractj.libmatthew</groupId>
        <artifactId>unix</artifactId>
        <version>0.5.1</version>
      </dependency>

    </dependencies>
  </dependencyManagement>

  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-resources-plugin</artifactId>
          <version>${resources-plugin.version}</version>
          <configuration>
            <encoding>${project.build.sourceEncoding}</encoding>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>${compiler-plugin.version}</version>
          <configuration>
            <source>${jdk.version}</source>
            <target>${jdk.version}</target>
            <encoding>${project.build.sourceEncoding}</encoding>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-source-plugin</artifactId>
          <version>${source-plugin.version}</version>
          <executions>
            <execution>
              <id>attach-sources</id>
              <phase>verify</phase>
              <goals>
                <goal>jar-no-fork</goal>
              </goals>
            </execution>
          </executions>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-javadoc-plugin</artifactId>
          <version>${javadoc-plugin.version}</version>
          <configuration>
            <show>private</show>
            <nohelp>true</nohelp>
          </configuration>
          <executions>
            <execution>
              <id>attach-sources</id>
              <phase>verify</phase>
              <goals>
                <goal>jar</goal>
              </goals>
            </execution>
          </executions>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-enforcer-plugin</artifactId>
          <version>${enforcer-plugin.version}</version>
          <executions>
            <execution>
              <id>enforce-maven</id>
              <goals>
                <goal>enforce</goal>
              </goals>
              <configuration>
                <rules>
                  <requireMavenVersion>
                    <version>${maven.version}</version>
                  </requireMavenVersion>
                </rules>
              </configuration>
            </execution>
          </executions>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-release-plugin</artifactId>
          <version>${release-plugin.version}</version>
          <configuration>
            <pushChanges>false</pushChanges>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
  </build>
</project>
