Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-7800

Export jackson-jaxrs-json-provider dependency in resteasy-jackson2-provider module

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 11.0.0.Beta1
    • None
    • REST
    • None

    Description

      RFE EAP7-608, Introduces Jackson 2 JsonFilter annotation support for Resteasy.
      This cannot be used without explicitly defined dependency for jackson-jaxrs-json-provider in the deployment.

      Actual behaviour:
      Currently a deployment with the resource using JsonFilter annotation must have com.fasterxml.jackson.jaxrs.jackson-jaxrs-json-provider dependency specified in the MANIFEST file in order to correctly deploy.

      See example - https://github.com/resteasy/Resteasy/blob/master/testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/providers/jackson2/jsonfilter/JsonFilterWithInterceptrTest.java#L38

      Expected behaviour:
      There is no need to add explicit dependency into the deployment.

      Dependencies in the modules/system/layers/base/org/jboss/resteasy/resteasy-jackson2-provider/main/module.xml shall be updated to export jackson-jaxrs-json-provider.

      <dependencies>
              <module name="com.fasterxml.jackson.core.jackson-annotations" export="true"/>
              <module name="com.fasterxml.jackson.core.jackson-core" export="true"/>
              <module name="com.fasterxml.jackson.core.jackson-databind" export="true"/>
              <module name="com.fasterxml.jackson.jaxrs.jackson-jaxrs-json-provider" export="true"/>
      ...
      

      Attachments

        Issue Links

          Activity

            People

              dtikhomi@redhat.com Dmitrii Tikhomirov
              kanovotn Katerina Odabasi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: