必须加上 classifier
官网:http://json-lib.sourceforge.net/
Json-lib comes in two flavors, depending on the jdk compatibility. json-lib-x.x-jdk13 is compatible with JDK 1.3.1 and upwards. json-lib-x.x-jdk15 is compatible with JDK 1.5, includes support for Enums in JSONArray and JSONObject. Please reffer to the appropriate javadoc links available in the project menu.
<dependency> <groupId>net.sf.json-lib</groupId> <artifactId>json-lib</artifactId> <version>2.4<version> <classifier>jdk15</classifier> </dependency>
标签:lib,JDK,jdk15,json,net,sf From: https://www.cnblogs.com/zno2/p/6097561.html