<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"/>
        </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>
    </deployment>
</jboss-deployment-structure>