<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>5</version>
  </parent>

  <groupId>org.carrot2</groupId>
  <artifactId>carrot2</artifactId>
  <version>3.8.0</version>

  <name>Carrot2</name>

  <description>
    Parent POM for Carrot2 artefacts.
  </description>

  <packaging>pom</packaging>

  <licenses>
    <license>
      <name>BSD license</name>
      <url>http://www.carrot2.org/carrot2.LICENSE</url>
      <distribution>repo</distribution>
    </license>
  </licenses>

  <organization>
    <name>Carrot2.org</name>
    <url>http://www.carrot2.org/</url>
  </organization>

  <mailingLists>
    <mailingList>
      <name>Developers List</name>
      <subscribe>carrot2-developers-subscribe@lists.sourceforge.net</subscribe>
      <unsubscribe>carrot2-developers-leave@lists.sourceforge.net</unsubscribe>
      <post>carrot2-developers@lists.sourceforge.net</post>
      <archive>http://sourceforge.net/mailarchive/forum.php?forum_name=carrot2-developers</archive>
    </mailingList>
  </mailingLists>

  <issueManagement>
    <system>Jira</system>
    <url>http://issues.carrot2.org/</url>
  </issueManagement>

  <modules>
    <module>core</module>
    <module>mini</module>
  </modules>

  <properties>
    <!-- This must be an absolute path, otherwise gpg plugin will fail on linux machines. -->
    <carrot2.master.basedir>C:\carrot2\carrotsearch.lingo3g\carrot2</carrot2.master.basedir>
    <carrot2.version>3.8.0</carrot2.version>

    <!-- Versions of dependencies. -->
    <com.carrotsearch.hppc.version>0.5.2</com.carrotsearch.hppc.version>
    <com.google.guava.version>14.0.1</com.google.guava.version>
    <morfologik.version>1.7.0</morfologik.version>
    <net.java.dev.rome.version>1.0.0</net.java.dev.rome.version>
    <net.java.dev.rome.fetcher.version>1.0.0</net.java.dev.rome.fetcher.version>
    <commons.lang.version>2.6</commons.lang.version>
    <commons.codec.version>1.4</commons.codec.version>
    <org.codehaus.jackson.version>1.7.4</org.codehaus.jackson.version>
    <org.slf4j.version>1.6.1</org.slf4j.version>
    <org.apache.mahout.version>0.6</org.apache.mahout.version>
    <org.apache.mahout.collections.version>1.0</org.apache.mahout.collections.version>
    <org.apache.httpcomponents.version>4.1</org.apache.httpcomponents.version>
    <org.apache.lucene.version>4.2.1</org.apache.lucene.version>
    <org.jdom.version>1.1</org.jdom.version>
    <org.simpleframework.version>2.7</org.simpleframework.version>
    <org.carrot2.attributes>1.2.0</org.carrot2.attributes>
  </properties>

  <dependencies>
    <dependency>
      <groupId>com.carrotsearch</groupId>
      <artifactId>hppc</artifactId>
      <version>${com.carrotsearch.hppc.version}</version>
    </dependency>

    <dependency>
      <groupId>org.carrot2.attributes</groupId>
      <artifactId>attributes-binder</artifactId>
      <version>${org.carrot2.attributes}</version>
    </dependency>

    <dependency>
      <groupId>com.google.guava</groupId>
      <artifactId>guava</artifactId>
      <version>${com.google.guava.version}</version>
    </dependency>

    <dependency>
      <groupId>commons-lang</groupId>
      <artifactId>commons-lang</artifactId>
      <version>${commons.lang.version}</version>
    </dependency>

    <dependency>
      <groupId>org.codehaus.jackson</groupId>
      <artifactId>jackson-core-asl</artifactId>
      <version>${org.codehaus.jackson.version}</version>
    </dependency>

    <dependency>
      <groupId>org.codehaus.jackson</groupId>
      <artifactId>jackson-mapper-asl</artifactId>
      <version>${org.codehaus.jackson.version}</version>
    </dependency>

    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
      <version>${org.slf4j.version}</version>
    </dependency>

    <dependency>
      <groupId>org.apache.mahout</groupId>
      <artifactId>mahout-math</artifactId>
      <version>${org.apache.mahout.version}</version>
      <exclusions>
        <exclusion>
          <groupId>com.google.code.gson</groupId>
          <artifactId>gson</artifactId>
        </exclusion>
        <exclusion>
          <artifactId>xpp3</artifactId>
          <groupId>xpp3</groupId>
        </exclusion>
        <exclusion>
          <artifactId>uncommons-maths</artifactId>
          <groupId>org.uncommons.maths</groupId>
        </exclusion>
        <exclusion>
          <artifactId>commons-math</artifactId>
          <groupId>org.apache.commons</groupId>
        </exclusion>
      </exclusions>
    </dependency>

    <dependency>
      <groupId>org.apache.mahout</groupId>
      <artifactId>mahout-collections</artifactId>
      <version>${org.apache.mahout.collections.version}</version>
      <exclusions>
        <exclusion>
          <groupId>org.apache.mahout</groupId>
          <artifactId>mahout-collection-codegen-plugin</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
  </dependencies>

  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-antrun-plugin</artifactId>
          <version>1.6</version>
          <inherited>false</inherited>

          <dependencies>
            <dependency>
              <groupId>org.apache.ant</groupId>
              <artifactId>ant-nodeps</artifactId>
              <version>1.8.0</version>
            </dependency>
            <dependency>
              <groupId>org.apache.ant</groupId>
              <artifactId>ant-trax</artifactId>
              <version>1.8.0</version>
            </dependency>
            <dependency>
              <groupId>org.apache.ant</groupId>
              <artifactId>ant-junit</artifactId>
              <version>1.8.0</version>
            </dependency>
          </dependencies>
        </plugin>

        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>build-helper-maven-plugin</artifactId>
          <version>1.5</version>
        </plugin>
      </plugins>
    </pluginManagement>
  </build>
  
  <profiles>
    <profile>
      <id>sonatype</id>
      <build>
        <defaultGoal>verify</defaultGoal>

        <plugins>
          <!-- GPG sign artefacts. -->
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>1.4</version>
            <configuration>
              <excludes>
                <exclude>**/*.gz</exclude>
                <exclude>**/*.zip</exclude>
		<exclude>**/*.asc</exclude>
              </excludes>
            </configuration>
            <executions>
              <execution>
                <goals>
                  <goal>sign</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
  
  <repositories>
    <repository>
      <id>sonatype.releases</id>
      <name>Sonatype Releases Repository</name>
      <url>http://oss.sonatype.org/content/repositories/releases</url>
      <releases>
        <enabled>true</enabled>
      </releases>
      <snapshots>
        <updatePolicy>never</updatePolicy>
      </snapshots>
    </repository>
  </repositories>  
</project>
