[英]Should I download the jars listed in compile dependencies in mvnrepository.com website?
I am working on a web services project. 我正在从事一个Web服务项目。 I started with some tutorials that recommended XML.
我从一些推荐XML的教程开始。 Now I am moving to use JSON.
现在,我要使用JSON。 I learned that I need this https://mvnrepository.com/artifact/com.sun.jersey/jersey-json/1.19.2 But I found that "compile dependencies" for the above jar.
我了解到我需要这个https://mvnrepository.com/artifact/com.sun.jersey/jersey-json/1.19.2但我发现上述jar的“编译依赖项”。 Should I download all those as well?
我是否也应该下载所有这些文件? I have used maven in my project before, but mostly I used it without an understanding.
我以前在项目中使用过maven,但大多数情况下我是在不了解的情况下使用过它。 So now your answers and directions will help me learn it.
因此,现在您的答案和指导将帮助我学习。 Thanks.
谢谢。
Add below dependency under dependency tag in your project pom.xml , that jar will automatically will be download and added to your class path , then you can use that jar classes in your code . 在项目pom.xml中的依赖项标签下添加以下依赖项,该jar将自动下载并添加到您的类路径中,然后您可以在代码中使用该jar类。
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-json</artifactId>
<version>1.19.2</version>
</dependency>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.