<jboss-deployment-structure>
    <deployment>
        <dependencies>
            <module name="org.apache.httpcomponents"/>
            <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"/>
            <module name="org.infinispan"/>
            <module name="sun.jdk.jgss"/>
        </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>