<?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.grouplens.common</groupId>
  <artifactId>gl-common</artifactId>
  <version>0.8</version>
  <packaging>pom</packaging>

  <name>GroupLens Common Utilities</name>
  <description>
    A collection of utilities and packages useful for a variety of
    tasks, collected from and used in GroupLens software development
    projects.
  </description>
  <inceptionYear>2011</inceptionYear>
  <url>${web.url}</url>
  <organization>
    <name>GroupLens Research</name>
    <url>http://www.grouplens.org</url>
  </organization>

  <licenses>
    <license>
      <name>3-clause BSD</name>
      <url>LICENSE.txt</url>
      <distribution>repo</distribution>
    </license>
  </licenses>

  <scm>
    <url>http://bitbucket.org/grouplens/gl-common</url>
    <connection>scm:hg:https://bitbucket.org/grouplens/gl-common</connection>
    <developerConnection>scm:hg:https://bitbucket.org/grouplens/gl-common</developerConnection>
  </scm>

  <issueManagement>
    <system>BitBucket</system>
    <url>https://bitbucket.org/grouplens/gl-common</url>
  </issueManagement>

  <developers>
    <developer>
      <id>mludwig</id>
      <name>Michael Ludwig</name>
      <email>mludwig@cs.umn.edu</email>
      <roles>
        <role>developer</role>
      </roles>
    </developer>
    <developer>
      <id>ekstrand</id>
      <name>Michael Ekstrand</name>
      <email>ekstrand@cs.umn.edu</email>
      <url>http://www-users.cs.umn.edu/~ekstrand</url>
      <roles>
        <role>developer</role>
      </roles>
    </developer>
  </developers>
 
  <modules>
    <module>common-test</module>
    <module>common-serialize</module>
    <module>common-hibernate</module>
    <module>slf4j-maven-shim</module>
    <module>common-javadoc</module>
  </modules>

  <distributionManagement>
    <site>
      <id>grouplens.org</id>
      <url>${web.url.pub}</url>
    </site>
  </distributionManagement>

  <properties>
    <copyrightHolder>Regents of the University of Minnesota</copyrightHolder>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <web.url.pub>file:///srv/www/gl-common</web.url.pub>
    <web.url>http://dev.grouplens.org/gl-common/</web.url>
  </properties>
  
  <dependencyManagement>
  	<dependencies>
  		<dependency>
  			<groupId>junit</groupId>
  			<artifactId>junit</artifactId>
  			<version>4.11</version>
  		</dependency>
  		<dependency>
  			<groupId>com.google.guava</groupId>
  			<artifactId>guava</artifactId>
  			<version>10.0.1</version>
  		</dependency>
  		<dependency>
  			<groupId>com.google.inject</groupId>
  			<artifactId>guice</artifactId>
  			<version>3.0</version>
  			<type>jar</type>
  			<scope>compile</scope>
  		</dependency>
  		<dependency>
  			<groupId>com.google.code.findbugs</groupId>
  			<artifactId>jsr305</artifactId>
  			<version>1.3.9</version>
  			<type>jar</type>
  			<scope>compile</scope>
  		</dependency>
  		<dependency>
  		  <groupId>org.hamcrest</groupId>
  		  <artifactId>hamcrest-core</artifactId>
  		  <version>1.3</version>
  		</dependency>
  		<dependency>
  		  <groupId>org.hamcrest</groupId>
  		  <artifactId>hamcrest-library</artifactId>
  		  <version>1.3</version>
  		</dependency>
  	</dependencies>
  </dependencyManagement>

  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <type>jar</type>
      <scope>test</scope>
    </dependency>
  </dependencies>
  
  <build>
    <extensions>
      <extension>
        <groupId>org.apache.maven.wagon</groupId>
        <artifactId>wagon-ssh-external</artifactId>
        <version>1.0-beta-7</version>
      </extension>
    </extensions>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-compiler-plugin</artifactId>
          <configuration>
            <source>1.6</source>
            <target>1.6</target>
            <showWarnings>true</showWarnings>
          </configuration>
        </plugin>

        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-release-plugin</artifactId>
          <version>2.2.1</version>
          <configuration>
            <autoVersionSubmodules>true</autoVersionSubmodules>
          </configuration>
        </plugin>

        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-javadoc-plugin</artifactId>
          <version>2.8</version>
        </plugin>

        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-project-info-reports-plugin</artifactId>
          <version>2.4</version>
        </plugin>
        
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-site-plugin</artifactId>
          <version>3.0</version>
          <configuration>
            <stagingDirectory>${basedir}/staging</stagingDirectory>
            <reportPlugins>
              <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-project-info-reports-plugin</artifactId>
                <reports>
                  <report>index</report>
                  <report>summary</report>
                  <report>license</report>  	        
                  <report>issue-tracking</report>
                  <report>scm</report>
                  <report>plugins</report>
                  <report>plugin-management</report>
                  <report>dependencies</report>
                  <report>dependency-convergence</report>
                  <report>dependency-management</report>
                </reports>
              </plugin>

              <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <version>2.8</version>
                <configuration>
                  <quiet>true</quiet>
                  <maxmemory>128m</maxmemory>
                  <links>
                    <link>http://guava-libraries.googlecode.com/svn/trunk/javadoc/</link>
                  </links>
                </configuration>
              </plugin>

              <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jxr-plugin</artifactId>
                <version>2.3</version>
                <configuration>
                  <bottom>
                    Copyright © ${project.inceptionYear}-${currentYear} ${copyrightHolder}
                  </bottom>
                  <linkJavadoc>true</linkJavadoc>
                  <windowTitle>${project.name}</windowTitle>
                </configuration>
                <reports>
                  <report>jxr</report>
                  <report>test-jxr</report>
                </reports>
              </plugin>
            </reportPlugins>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>

    <plugins>
      <plugin>
        <groupId>com.mycila.maven-license-plugin</groupId>
        <artifactId>maven-license-plugin</artifactId>
        <version>1.9.0</version>
        <inherited>false</inherited>
        <configuration>
          <basedir>${basedir}</basedir>
          <header>etc/header.txt</header>
          <aggregate>true</aggregate>
          <strictCheck>true</strictCheck>
          <includes>
            <include>common-*/src/**/*.java</include>
            <include>javadoc-citation-taglet/src/**/*.java</include>
          </includes>
          <properties>
            <description>${project.name}</description>
            <year>${project.inceptionYear}</year>
            <owner>Regents of the University of Minnesota</owner>
          </properties>
      	  <mapping>
      	    <java>SLASHSTAR_STYLE</java>
      	  </mapping>
        </configuration>
      </plugin>
    </plugins>
  </build>

  <profiles>
    <profile>
      <id>continuous-integration</id>
    </profile>
  </profiles>

</project>
