<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.2.0</version>
    <relativePath>../..</relativePath>
  </parent>
  <modelVersion>4.0.0</modelVersion>

  <artifactId>fcrepo-jcr-bom</artifactId>
  <name>Fedora Repository JCR BOM</name>
  <description>A BOM for JCR dependencies needed by the Fedora Repository project.</description>
  <packaging>pom</packaging>

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.modeshape</groupId>
        <artifactId>modeshape-jcr</artifactId>
        <version>${modeshape.version}</version>
        <scope>provided</scope>
        <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>
          <exclusion>
            <groupId>org.mortbay.jetty</groupId>
            <artifactId>servlet-api</artifactId>
          </exclusion>
          <exclusion>
            <groupId>xerces</groupId>
            <artifactId>xercesImpl</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 1.6 below because we're excluding the older 1.5 dep 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>
        <version>${modeshape.version}</version>
      </dependency>
      <dependency>
        <groupId>org.jboss.jbossts</groupId>
        <artifactId>jbossjta</artifactId>
        <version>4.16.6.Final</version>
      </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 dep; 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>
  </dependencyManagement>
</project>
