IDEA搭建spring boot项目,用maven导入jar包时,
添加net.sf.json的jar包依赖,然后导入 json-lib-2.2.3-jdk15.jar 的时候一直导不成功,install报错
Could not find artifact net.sf.json-lib:json-lib:jar:2.2.3
in central (https://repo.maven.apache.org/maven2)
Missing artifact net.sf.json-lib:json-lib:jar:2.2.3:compile
reimport 多次也没成功, 求助万能网友找到了解决办法
就是在导入的时候加jdk的版本号 :
<!-- https://mvnrepository.com/artifact/net.sf.json-lib/json-lib -->
<dependency>
<groupId>net.sf.json-lib</groupId>
<artifactId>json-lib</artifactId>
<version>2.2.3</version>
<classifier>jdk15</classifier>
</dependency>
完了之后自动导入的,结果导入成功;
记录下;