<jboss-deployment-structure>
    <deployment>
        <dependencies>
            <module name="org.keycloak.keycloak-account-api" services="import"/>
            <module name="org.keycloak.keycloak-account-freemarker" services="import"/>
            <module name="org.keycloak.keycloak-connections-infinispan" services="import"/>
            <module name="org.keycloak.keycloak-connections-jpa" services="import" meta-inf="import"/>
            <module name="org.keycloak.keycloak-connections-jpa-liquibase" services="import"/>
            <module name="org.keycloak.keycloak-connections-mongo" services="import"/>
            <module name="org.keycloak.keycloak-connections-mongo-update" services="import"/>
            <module name="org.keycloak.keycloak-connections-file" services="import"/>
            <module name="org.keycloak.keycloak-core" services="import"/>
            <module name="org.keycloak.keycloak-core-jaxrs" services="import"/>
            <module name="org.keycloak.keycloak-email-api" services="import"/>
            <module name="org.keycloak.keycloak-email-freemarker" services="import"/>
            <module name="org.keycloak.keycloak-events-api" services="import"/>
            <module name="org.keycloak.keycloak-events-email" services="import"/>
            <module name="org.keycloak.keycloak-events-jboss-logging" services="import"/>
            <module name="org.keycloak.keycloak-events-jpa" services="import"/>
            <module name="org.keycloak.keycloak-events-mongo" services="import"/>
            <module name="org.keycloak.keycloak-export-import-api" services="import"/>
            <module name="org.keycloak.keycloak-export-import-dir" services="import"/>
            <module name="org.keycloak.keycloak-export-import-single-file" services="import"/>
            <module name="org.keycloak.keycloak-export-import-zip" services="import"/>
            <module name="org.keycloak.keycloak-forms-common-freemarker" services="import"/>
            <module name="org.keycloak.keycloak-forms-common-themes" services="import"/>
            <module name="org.keycloak.keycloak-invalidation-cache-infinispan" services="import"/>
            <module name="org.keycloak.keycloak-invalidation-cache-model" services="import"/>
            <module name="org.keycloak.keycloak-jboss-adapter-core" services="import"/>
            <module name="org.keycloak.keycloak-js-adapter" services="import"/>
            <module name="org.keycloak.keycloak-kerberos-federation" services="import"/>
            <module name="org.keycloak.keycloak-ldap-federation" services="import"/>
            <module name="org.keycloak.keycloak-login-api" services="import"/>
            <module name="org.keycloak.keycloak-login-freemarker" services="import"/>
            <module name="org.keycloak.keycloak-model-api" services="import"/>
            <module name="org.keycloak.keycloak-model-jpa" services="import"/>
            <module name="org.keycloak.keycloak-model-mongo" services="import"/>
            <module name="org.keycloak.keycloak-model-file" services="import"/>
            <module name="org.keycloak.keycloak-model-sessions-infinispan" services="import"/>
            <module name="org.keycloak.keycloak-model-sessions-jpa" services="import"/>
            <module name="org.keycloak.keycloak-model-sessions-mem" services="import"/>
            <module name="org.keycloak.keycloak-model-sessions-mongo" services="import"/>
            <module name="org.keycloak.keycloak-picketlink-api" services="import"/>

            <module name="org.keycloak.keycloak-picketlink-ldap" services="import"/>
            <module name="org.keycloak.keycloak-saml-protocol" services="import"/>
            <module name="org.keycloak.keycloak-services" export="true" services="import"/>
            <module name="org.keycloak.keycloak-social-core" services="import"/>
            <module name="org.keycloak.keycloak-social-facebook" services="import"/>
            <module name="org.keycloak.keycloak-social-github" services="import"/>
            <module name="org.keycloak.keycloak-social-google" services="import"/>
            <module name="org.keycloak.keycloak-social-twitter" services="import"/>
            <module name="org.keycloak.keycloak-social-linkedin" services="import"/>
            <module name="org.keycloak.keycloak-timer-api" services="import"/>
            <module name="org.keycloak.keycloak-timer-basic" services="import"/>
            <module name="org.hibernate" services="import"/>
            <module name="org.bouncycastle"/>

            <module name="org.jboss.resteasy.resteasy-jackson-provider" services="import"/>
            <module name="org.codehaus.jackson.jackson-core-asl"/>
            <module name="org.codehaus.jackson.jackson-mapper-asl"/>
        </dependencies>
        <exclusions>
            <module name="org.jboss.resteasy.resteasy-jackson2-provider"/>

            <!-- Exclude keycloak modules -->
            <module name="org.keycloak.keycloak-core" />
            <module name="org.keycloak.keycloak-adapter-core" />
            <module name="org.keycloak.keycloak-undertow-adapter" />
            <module name="org.keycloak.keycloak-as7-adapter" />
        </exclusions>
        <exclude-subsystems>
            <subsystem name="webservices"/>
        </exclude-subsystems>
    </deployment>
</jboss-deployment-structure>