org.codehaus.jackson与com.fasterxml.jackson.core [英] org.codehaus.jackson versus 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屋!