<?xml version="1.0" encoding="UTF-8"?>

<!--
  ~ JBoss, Home of Professional Open Source.
  ~ Copyright 2010, Red Hat, Inc., and individual contributors
  ~ as indicated by the @author tags. See the copyright.txt file in the
  ~ distribution for a full listing of individual contributors.
  ~
  ~ This is free software; you can redistribute it and/or modify it
  ~ under the terms of the GNU Lesser General Public License as
  ~ published by the Free Software Foundation; either version 2.1 of
  ~ the License, or (at your option) any later version.
  ~
  ~ This software 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 software; if not, write to the Free
  ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  -->
<module xmlns="urn:jboss:module:1.1" name="org.modeshape">
    <resources>
        <resource-root path="modeshape-jcr-${project.version}.jar" />
        <resource-root path="conf" />
        <resource-root path="res" />
        <resource-root path="modeshape-jbossas-subsystem-${project.version}.jar" />
    </resources>

   <dependencies>
       <!--The sequencers aren't listed here because they are loaded from the ModuleLoader API -->
        <module name="org.modeshape.jcr.api" export="true"/>
        <module name="org.modeshape.common" export="true"/>

        <!-- ModeShape JCR dependencies (must export Infinispan so that our stored classes can be loaded )-->
        <module name="org.infinispan" export="true"/>
        <module name="org.joda.time" />
        <module name="org.jgroups" />
        <module name="org.apache.tika" slot="${tika.version}" services="import"/>
        <module name="org.apache.lucene" slot="${lucene.module.slot}"/>
        <module name="org.hibernate.search-engine" slot="4.1" export="true"/>
        <!-- For naming ... -->
        <module name="javax.api" export="true"/>
        <module name="org.jboss.as.naming"/>
        <!-- For security provider ... -->
        <module name="javax.servlet.api"/>
        <module name="javax.resource.api"/>
        <!-- For logging ... -->
        <module name="org.jboss.logging"/>
        <!-- For the subsystem ... -->
        <module name="org.jboss.as.controller"/>
        <module name="org.jboss.staxmapper"/>
        <module name="org.jboss.modules"/>
        <module name="org.jboss.msc" />
        <module name="org.jboss.as.server"/>
    </dependencies>

</module>