Maven: missing net.sf.json-lib

Looking at the maven-central repo, you need to specify a classifier for this dependency.

Either jdk13 or jdk15, like this:

<dependency>
    <groupId>net.sf.json-lib</groupId>
    <artifactId>json-lib</artifactId>
    <version>2.4</version>
    <classifier>jdk15</classifier>
</dependency>

For gradle as sample

compile 'net.sf.json-lib:json-lib:2.4:jdk15'

OR

compile group: 'net.sf.json-lib', name: 'json-lib', version: '2.4', classifier: 'jdk15'

I searched for more classifier's could not find anything other than jdk15 (don't go looking or jdk16 or jdk17)

Tags:

Maven 2