<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Hibernate, Relational Persistence for Idiomatic Java
  ~
  ~ Copyright (c) 2012, Red Hat, Inc. and/or its affiliates or third-party contributors as
  ~ indicated by the @author tags or express copyright attribution
  ~ statements applied by the authors.  All third-party contributions are
  ~ distributed under license by Red Hat, Inc.
  ~
  ~ This copyrighted material is made available to anyone wishing to use, modify,
  ~ copy, or redistribute it subject to the terms and conditions of the GNU
  ~ Lesser General Public License, as published by the Free Software Foundation.
  ~
  ~ This program is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  ~ or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
  ~ for more details.
  ~
  ~ You should have received a copy of the GNU Lesser General Public License
  ~ along with this distribution; if not, write to:
  ~ Free Software Foundation, Inc.
  ~ 51 Franklin Street, Fifth Floor
  ~ Boston, MA  02110-1301  USA
  -->
<!--
This Module is meant to be used exclusively by Hibernate Search as used in combination with Hibernate ORM;
(Not the Hibernate Search version used by Infinispan Query as an internal dependency).

It is a slimmed down alternative for the combination of modules normally built by the Infinispan project:
 - org.infinispan.lucene-directory
 - org.infinispan

As it needs to link to the classloaders of Hibernate Search without introducing possible linkage errors,
it needs to point to the slot of module org.apache.lucene of the consuming Hibernate Search,
and obviously needs to avoid dependencies to different versions of Hibernate Search.

-->
<module xmlns="urn:jboss:module:1.1" name="org.hibernate.search.infinispan-storage" slot="ispn-7.1">

    <resources>
        <resource-root path="hibernate-search-infinispan-5.2.0.Beta1.jar"/>
    </resources>

    <dependencies>
        <module name="org.apache.lucene" slot="4.10" />
        <module name="org.hibernate.search.engine" slot="5.2"/>

        <!-- Next dependencies are essentially a copy of those from module org.infinispan,
             but filtering out the ones related to Apache Lucene, Infinispan Query and Hibernate Search. -->
        <module name="javax.api"/>
        <module name="javax.transaction.api"/>
        <module name="javax.xml.bind.api"/>
        <module name="net.jcip"/>
        <module name="org.jboss.logging"/>
        <module name="sun.jdk"/>
        <module name="org.infinispan" slot="ispn-7.1" />
    </dependencies>
</module>
