<!--
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements. See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership. The ASF licenses this file
 * to you 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/xsd/maven-4.0.0.xsd">


  <parent>
    <groupId>org.apache</groupId>
    <artifactId>apache</artifactId>
    <version>11</version>
  </parent>

  <modelVersion>4.0.0</modelVersion>
  <groupId>org.apache.mrunit</groupId>
  <artifactId>mrunit</artifactId>
  <version>1.0.0</version>

  <properties>
    <envClassifier>hadoop2</envClassifier>
    <specificHadoopVersion>2.0.0-alpha</specificHadoopVersion>
  </properties>

  <name>MRUnit</name>
  <url>http://mrunit.apache.org</url>

  <description>
    MRUnit is a Java library that helps developers unit test Apache Hadoop map
    reduce jobs.
  </description>

  <issueManagement>
    <system>JIRA</system>
    <url>http://issues.apache.org/jira/browse/MRUNIT</url>
  </issueManagement>

  <ciManagement>
    <system>Jenkins</system>
    <url>http://builds.apache.org/job/mrunit-trunk/</url>
  </ciManagement>

  <scm>
    <connection>scm:git:http://git-wip-us.apache.org/repos/asf/mrunit.git</connection>
    <developerConnection>scm:git:https://git-wip-us.apache.org/repos/asf/mrunit.git</developerConnection>
    <url>https://git-wip-us.apache.org/repos/asf?p=mrunit.git;a=summary</url>
  </scm>

  <mailingLists>
    <mailingList>
      <name>user</name>
      <post>user@mrunit.apache.org</post>
      <subscribe>user-subscribe@mrunit.apache.org</subscribe>
      <unsubscribe>user-unsubscribe@mrunit.apache.org</unsubscribe>
      <archive>http://mail-archives.apache.org/mod_mbox/mrunit-user</archive>
    </mailingList>
    <mailingList>
      <name>dev</name>
      <post>dev@mrunit.apache.org</post>
      <subscribe>dev-subscribe@mrunit.apache.org</subscribe>
      <unsubscribe>dev-unsubscribe@mrunit.apache.org</unsubscribe>
      <archive>http://mail-archives.apache.org/mod_mbox/mrunit-dev</archive>
    </mailingList>
    <mailingList>
      <name>commits</name>
      <post>commits@mrunit.apache.org</post>
      <subscribe>commits-subscribe@mrunit.apache.org</subscribe>
      <unsubscribe>commits-unsubscribe@mrunit.apache.org</unsubscribe>
      <archive>http://mail-archives.apache.org/mod_mbox/mrunit-commits</archive>
    </mailingList>
  </mailingLists>

  <developers>
    <developer>
      <id>kimballa.apache.org</id>
      <email>kimballa@apache.org</email>
      <name>Aaron Kimball</name>
    </developer>
    <developer>
      <id>cos.apache.org</id>
      <email>cos@apache.org</email>
      <name>Konstantin Boudnik</name>
    </developer>
    <developer>
      <id>gwu.apache.org</id>
      <email>gwu@apache.org</email>
      <name>Garrett Wu</name>
    </developer>
    <developer>
      <id>esammer.apache.org</id>
      <email>esammer@apache.org</email>
      <name>Eric Sammer</name>
    </developer>
    <developer>
      <id>brock.apache.org</id>
      <email>brock@apache.org</email>
      <name>Brock Noland</name>
    </developer>
    <developer>
      <id>jdonofrio.apache.org</id>
      <email>jdonofrio@apache.org</email>
      <name>Jim Donofrio</name>
    </developer>
    <developer>
      <id>jarcec.apache.org</id>
      <email>jarcec@apache.org</email>
      <name>Jarek Jarcec Cecho</name>
    </developer>
    <developer>
      <id>dbeech.apache.org</id>
      <email>dbeech@apache.org</email>
      <name>Dave Beech</name>
    </developer>
  </developers>

  <build>
    <plugins>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.3.2</version>
        <configuration>
          <source>1.6</source>
          <target>1.6</target>
        </configuration>
      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.8.1</version>
        <configuration>
          <redirectTestOutputToFile>true</redirectTestOutputToFile>
        </configuration>
      </plugin>

      <plugin>
        <groupId>org.apache.rat</groupId>
        <artifactId>apache-rat-plugin</artifactId>
        <version>0.8</version>
        <executions>
          <execution>
            <phase>prepare-package</phase>
            <goals>
              <goal>check</goal>
            </goals>
            <configuration>
              <excludes>
                <exclude>BUILD.txt</exclude>
                <exclude>CHANGES.txt</exclude>
                <exclude>BIN-NOTICE.txt</exclude>
                <exclude>.idea/</exclude>
                <exclude>.git/</exclude>
                <exclude>.gitignore</exclude>
              </excludes>
            </configuration>
          </execution>
        </executions>
      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <version>2.4</version>
        <configuration>
          <classifier>${envClassifier}</classifier>
        </configuration>
      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>2.8.1</version>
        <configuration>
          <excludePackageNames>*.internal</excludePackageNames>
        </configuration>
        <executions>
          <execution>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-source-plugin</artifactId>
        <version>2.1.2</version>
        <executions>
          <execution>
            <goals>
              <goal>jar-no-fork</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-dependency-plugin</artifactId>
        <version>2.5.1</version>
        <configuration>
          <failOnWarning>true</failOnWarning>
          <ignoreNonCompile>true</ignoreNonCompile>
        </configuration>
        <executions>
          <execution>
            <phase>prepare-package</phase>
            <goals>
              <goal>analyze-only</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

      <plugin>
        <groupId>net.ju-n.maven.plugins</groupId>
        <artifactId>checksum-maven-plugin</artifactId>
        <version>1.0.1</version>
      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-gpg-plugin</artifactId>
        <version>1.4</version>
      </plugin>

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

  <profiles>
    <profile>
      <id>sign</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-gpg-plugin</artifactId>
            <executions>
              <execution>
                <phase>verify</phase>
                <goals>
                  <goal>sign</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>

    <profile>
      <id>dist-src</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-assembly-plugin</artifactId>
            <version>2.3</version>
            <configuration>
              <tarLongFileMode>gnu</tarLongFileMode>
              <finalName>apache-mrunit-${project.version}-${envClassifier}</finalName>
              <descriptors>
                <descriptor>src/main/assembly/src-assembly.xml</descriptor>
              </descriptors>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>

    <profile>
      <id>dist-bin</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-assembly-plugin</artifactId>
            <version>2.3</version>
            <configuration>
              <tarLongFileMode>gnu</tarLongFileMode>
              <finalName>apache-mrunit-${project.version}-${envClassifier}</finalName>
              <descriptors>
                <descriptor>src/main/assembly/bin-assembly.xml</descriptor>
              </descriptors>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>

  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.10</version>
    </dependency>

    <dependency>
      <groupId>commons-logging</groupId>
      <artifactId>commons-logging</artifactId>
      <version>1.1.1</version>
    </dependency>

    <dependency>
      <groupId>org.mockito</groupId>
      <artifactId>mockito-all</artifactId>
      <version>1.8.5</version>
    </dependency>

    <dependency>
      <groupId>org.apache.hadoop</groupId>
      <artifactId>hadoop-common</artifactId>
      <version>${specificHadoopVersion}</version>
      <scope>provided</scope>
    </dependency>

    <dependency>
      <groupId>org.apache.hadoop</groupId>
      <artifactId>hadoop-mapreduce-client-core</artifactId>
      <version>${specificHadoopVersion}</version>
      <scope>provided</scope>
    </dependency>
  </dependencies>
</project>
