开始在pom.xml文件中加入依赖如下
<dependency>
<groupId>net.sf.json-lib</groupId>
<artifactId>json-lib</artifactId>
<version>2.2.3</version>
</dependency>
maven reload project后,项目一直报:
Could not find artifact net.sf.json-lib:json-lib:jar:2.2.3 in nexus-aliyun (https://maven.aliyun.com/nexus/content/groups/public/)
Try to run Maven import with -U flag (force update snapshots)
最后将依赖改成如下,reload 成功了。
<dependency>
<groupId>net.sf.json-lib</groupId>
<artifactId>json-lib</artifactId>
<version>2.2.3</version>
<classifier>jdk15</classifier>
</dependency>
在此记录一下