Question: Maven:missing net.sf.json-lib

Source: Internet
Author: User

Question: Maven:missing net.sf.json-lib
Solve:
Pom.xml Join Json-lib Dependency, note to add a classifier line, as follows:
Here Maven Address: http://repo1.maven.org/maven2/net/sf/json-lib/json-lib/2.4/

1 <Dependency>2         <groupId>Net.sf.json-lib</groupId>3         <Artifactid>Json-lib</Artifactid>4         <version>2.4</version>5         <classifier>Jdk15</classifier>6   </Dependency>
这里classifier的版本到底是jdk13,15,16,17,要根据你所引用的maven仓库里存在的版本,如这里的maven仓库地址是http://repo1.maven.org/maven2/net/sf/json-lib/json-lib/2.4/。
可以点击进去看到版本是多少。![如这里就有jdk13和15两个版本]

参考资料: 

Http://zhidao.baidu.com/link?url=P5_fMhLMqgrvEwCpp2nF7OSH4tKXhsz_adQh20M5rYuqXaKYKa9HjW8lcKweocyQBaQ4lKZ_aX_xgwovb5KtGq

Http://stackoverflow.com/questions/4173214/maven-missing-net-sf-json-lib

Question: Maven:missing net.sf.json-lib

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.