org.codehaus.jackson与com.fasterxml.jackson.core [英] org.codehaus.jackson versus com.fasterxml.jackson.core

查看:222
本文介绍了org.codehaus.jackson与com.fasterxml.jackson.core的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

org.codehaus.jackson和com.fasterxml.jackson.core有关吗?
我有

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


org.codehaus.jackson jackson-all version 1.7.2

org.codehaus.jackson jackson-all version 1.7.2


com.fasterxml.jackson.core> jackson-databind version 2.4。在我的pom中3

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


我不确定它们是否多余且可能发生冲突。

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

推荐答案

org.codehaus .jackson 是杰克逊的旧版本。

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

com.fasterxml.jackson 表示新项目和包。

原因是,杰克逊在发布杰克逊2时已从Codehaus转移到Github。

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

参见这里了解详情。

我建议从POM中删除 org.codehaus.jackson 引用,重新构建并查找错误(不太可能,但可能)。

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

如果您发现任何问题,可以使用弃用的API将代码调整为较新的Jackson版本的API。

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

这篇关于org.codehaus.jackson与com.fasterxml.jackson.core的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆