<?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/xsd/maven-4.0.0.xsd">
  <parent>
    <artifactId>fcrepo</artifactId>
    <groupId>org.fcrepo</groupId>
    <version>4.0.0-alpha-5</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>

  <artifactId>fcrepo-jcr</artifactId>
  <name>Fedora Repository JCR Support Module</name>
  <description />
  <packaging>bundle</packaging>

  <dependencies>
    <dependency>
      <groupId>org.modeshape</groupId>
      <artifactId>modeshape-jcr</artifactId>
      <exclusions>
        <exclusion>
          <groupId>org.gagravarr</groupId>
          <artifactId>vorbis-java-tika</artifactId>
        </exclusion>
        <!-- tika-parsers transitively depends on commons-codec-1.5 but 
        httpclient is pulling in 1.6, so we explicitly exclude commons-codec
        here and add commons-codec-1.6 as a dependency below -->
        <exclusion>
          <groupId>commons-codec</groupId>
          <artifactId>commons-codec</artifactId>
        </exclusion>

        <exclusion>
          <groupId>org.xerial.snappy</groupId>
          <artifactId>snappy-java</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
    
    <!-- vorbis-java-tika is only added here because it declares a dependency on 
    tika-core:1.0 which we want to exclude in favor of version 1.3 which is a
    dependency of tika-parsers:1.3  -->
    <dependency>
      <groupId>org.gagravarr</groupId>
      <artifactId>vorbis-java-tika</artifactId>
      <version>0.1</version>
      <exclusions>
        <exclusion>
          <groupId>org.apache.tika</groupId>
          <artifactId>tika-core</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
    
    <!-- Only explicitly adding commons-codec-1.6 because we're excluding the 
    older 1.5 dependency from modeshape-jcr above -->
    <dependency>
      <groupId>commons-codec</groupId>
      <artifactId>commons-codec</artifactId>
      <version>1.6</version>
    </dependency>


    <dependency>
      <groupId>org.modeshape</groupId>
      <artifactId>modeshape-common</artifactId>
    </dependency>

    <dependency>
      <groupId>org.jboss.jbossts</groupId>
      <artifactId>jbossjta</artifactId>
      <version>4.16.6.Final</version><!--$NO-MVN-MAN-VER$-->
    </dependency>

    <dependency>
      <groupId>org.infinispan</groupId>
      <artifactId>infinispan-cachestore-leveldb</artifactId>
      <version>${infinispan.version}</version>
      <exclusions>
        <!-- leveldbjni platform-specific builds pull in different versions
        of this dependency. we'll pull in the latest below. -->
        <exclusion>
          <groupId>org.fusesource.leveldbjni</groupId>
          <artifactId>leveldbjni</artifactId>
        </exclusion>
      </exclusions>
    </dependency>

    <!-- pulling in the latest version of the dependency 
    to make DependencyConvergence happy-->
    <dependency>
      <groupId>org.fusesource.leveldbjni</groupId>
      <artifactId>leveldbjni</artifactId>
      <version>1.7</version>
    </dependency>

    <dependency>
      <groupId>org.xerial.snappy</groupId>
      <artifactId>snappy-java</artifactId>
      <version>1.0.5</version>
    </dependency>
  </dependencies>
  
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
      </plugin>
      <!-- Disabling javadoc plugin to prevent error caused by having no classes -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <executions>
          <execution>
            <id>attach-javadocs</id>
            <phase />
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

</project>