排除静态HTTPCOMPONEND模块,而无需从JBOSS EAP 7.1概括resteasy



我需要从应用程序中排除默认的httpcomponent模块,但是我也使用restasy,不想排除或破坏它。对于HTTPCOMPONENT,我想使用项目中依赖项的版本。JBoss EAP 7.1

是否可以

JBOSS中的模块的版本:

Jackson-Databind-2.8.9.dhat-1

杰克逊 - 核2.8.9.Redhat-1

Jackson-Annotations-2.8.9.dhat-1

我尝试将其添加到jboss-deployment-structure.xml此配置中,但没有帮助:

<?xml version="1.0" encoding="UTF-8"?>
<jboss-deployment-structure>
    <deployment>
        <exclusions>
            <module name="org.apache.httpcomponents" />     
            <module name="org.jboss.resteasy.resteasy-jackson-provider" />
            <module name="org.jboss.resteasy.resteasy-jackson2-provider" />
             <module name="org.jboss.resteasy.resteasy-jettison-provider"/>
        </exclusions>
        <dependencies>
        </dependencies>
    </deployment>
</jboss-deployment-structure>

它应该有效,我可以为您提供一个测试的示例(我排除了我的Web应用程序的Jettinson提供商):

<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0">
    <deployment>
        <exclusions>
            <module name="org.jboss.resteasy.resteasy-jettison-provider"/>
        </exclusions>
    </deployment>
</jboss-deployment-structure>

我只看到您的问题中的模块,您是否有正确的部署 ->排除结构?

如果您需要JBOSS EAP 7模块的列表,请转到此处。

最新更新