Missing artifact net.sf.json-lib:json-lib:jar:2.2.3

<!-- https://mvnrepository.com/artifact/net.sf.json-lib/json-lib -->
<dependency>
<groupId>net.sf.json-lib</groupId>
<artifactId>json-lib</artifactId>
<classifier>jdk15</classifier>
<version>2.2.3</version>
</dependency>

报错:Missing artifact net.sf.json-lib:json-lib:jar:2.2.3

json-lib是需要区分jdk版本的,pom.xml中的配置应加上标签classifier指定jdk版本,如用jdk15,就正常了。

正确的配置为:

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

上一篇:[转]【maven】解决Missing artifact jdk.tools:jdk.tools:jar:1.6


下一篇:【转】数据库无关的GO语言ORM - hood