Net.sf.json-lib can not be added to the project solution

The json-lib is used in the project. When mvnrepository.com looks up its dependencies, the result is as follows:

xml code
 
<dependency>    
    <groupId>net.sf.json-lib</groupId>   
    <artifactId>json-lib</artifactId>    
    <version>2.4</version>    
</dependency>

But when installing, it always said that the jar could not be found, so I went to http://json-lib.sourceforge.net/ to download the jar package and install it on the repository myself. At this time, I found a little problem on the mvnrepository, json -lib provides the implementation of two jdk versions, json-lib-2.1-jdk13.jar and json-lib-2.1-jdk15.jar, it seems that modifying the description of dependency to the following form will solve the problem:
xml code
<!--json-lib-->  
<dependency>  
    <groupId>net.sf.json-lib</groupId>  
    <artifactId>json-lib</artifactId>  
    <version>2.4</version>  
    <classifier>jdk15</classifier>  
</dependency>

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326459684&siteId=291194637