Json-lib Library in Maven cannot be introduced

Source: Internet
Author: User

The Json-lib library was introduced into Maven today, and the Pom file in IntelliJ is not error-free, but it is not available in the class.

Pom Dependent configuration:

<Dependency>          <groupId>Net.sf.json-lib</groupId>         <Artifactid>Json-lib</Artifactid>          <version>2.4</version>      </Dependency> 

Search data found because the Json-lib library has two JDK versions of implementations, Json-lib-2.1-jdk13.jar and Json-lib-2.1-jdk15.jar, which need to be prefixed with a descriptor.

<Dependency>        <groupId>Net.sf.json-lib</groupId>        <Artifactid>Json-lib</Artifactid>        <version>2.4</version>        <classifier>Jdk15</classifier>    </Dependency>  

Re-use found sure there is no problem. Reference: Http://www.cnblogs.com/yqskj/archive/2013/05/27/3101934.html

Json-lib Library in Maven cannot be introduced

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.