Piotr Gwiazda
Piotr Gwiazda

Reputation: 12212

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.

Upvotes: 4

Views: 3662

Answers (2)

Piotr Gwiazda
Piotr Gwiazda

Reputation: 12212

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.

Upvotes: 10

DerMiggel
DerMiggel

Reputation: 493

Unfortunately, it isn't possible to use Jackson 2.x with RESTEasy 2.x because the integration of Jackson 1.x is fairly tight.

However, RESTEasy supports Jackson 2.x as of version 3.0-beta-5 - please see this issue for details or do a repository search if you're using Maven.

Upvotes: 1

Related Questions