如何在 maven 中包含/引用 jackson-all.jar [英] How to include/ refer jackson-all.jar in maven

查看:253
本文介绍了如何在 maven 中包含/引用 jackson-all.jar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找不到 jackson-all.jar 的存储库条目不知道为什么我可以看到单独的 jackson jars 信息.所以,如何引用 jackson-all.jar ?

I am unable to find the repository entry for jackson-all.jar Not sure why rather i could see individual jackson jars informations. So, how to refer the jackson-all.jar ?

推荐答案

jackson-all.jar 不作为 Maven 依赖项存在.

jackson-all.jar does not exist as a Maven dependency.

org.codehaus.jackson 组中所有工件的列表位于 http://mvnrepository.com/artifact/org.codehaus.jackson.

The list of all artifacts in the group org.codehaus.jackson are at http://mvnrepository.com/artifact/org.codehaus.jackson.

只需在您的 pom.xml 中添加 dependency 元素,即可为您在应用程序中直接需要的工件添加.Maven 将确保这些依赖的所有其他工件都包含在您的项目中.

Just add dependency elements in your pom.xml for the artifacts you directly need in your application. Maven will make sure that all other artifacts these depend on will be included in your project.

如果您使用 Java IDE,它将帮助您查找您在代码中使用的每个类的缺失依赖项.

If you use a Java IDE, it will help you look up the missing dependencies for every class you use in your code.

这篇关于如何在 maven 中包含/引用 jackson-all.jar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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