Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make Resteasy 2.3.6 use Jackson 2.+

IS there a way to make RestEasy use Jackson 2+ ? It seems that RestEasy Jackson provider uses Jackson 1.9.9 and it's still a case for ResetEasy 3.

like image 759
Piotr Gwiazda Avatar asked Dec 20 '22 06:12

Piotr Gwiazda


1 Answers

It occured to be quite simple. There are Jackson JAXRS providers in Jackson 2 already.

  • jackson-jaxrs-xml-provider
  • jackson-jaxrs-json-provider
  • jackson-jaxrs-smile-provider

So on the pom.xml

<dependency>
    <groupId>com.fasterxml.jackson.jaxrs</groupId>
    <artifactId>jackson-jaxrs-json-provider</artifactId>
    <version>2.2.2</version>
</dependency>

It's also good to exclude resteasy-jettison-provider to make sure you have no conflicts fo JSON handling.

like image 140
Piotr Gwiazda Avatar answered Apr 02 '23 18:04

Piotr Gwiazda