127

Are org.codehaus.jackson and com.fasterxml.jackson.core related? I have

org.codehaus.jackson jackson-all version 1.7.2

and

com.fasterxml.jackson.core > jackson-databind version 2.4.3

in my pom.xml. I am not sure if they are redundant and can conflict.

BuZZ-dEE
  • 6,075
  • 12
  • 66
  • 96
Aniruddh Joshi
  • 1,705
  • 3
  • 12
  • 18

1 Answers1

247

org.codehaus.jackson is an older version of Jackson.

com.fasterxml.jackson represents the new project and package.

The reason is, Jackson has moved from Codehaus to Github when releasing Jackson 2.

See here for details.

I would recommend removing org.codehaus.jackson references from your POM, re-building and looking for errors (not likely but possible).

If you find any, you can adapt the code using deprecated API to the newer Jackson version's API.

Al-Mothafar
  • 7,949
  • 7
  • 68
  • 102
Mena
  • 47,782
  • 11
  • 87
  • 106
  • 2
    also fix the old *codehaus* *ObjectNode* *"put"* method by changing it to *"putPOJO"* when using new *fasterxml* package, which is deprecated in new *fasterxml* jackson package. – ArifMustafa Jul 16 '18 at 07:01
  • 4
    Also don't mix annotation from one library and ObjectMapper from other, we had many bugs because of this mix. – Baris Oct 26 '21 at 12:17