Failure to find net.sf.json-lib:json-lib:jar:JDK15:

本文最后更新于:2020-12-21 12:16 星期一

Failure to find net.sf.json-lib:json-lib:jar:JDK15

Mac 系统报错:

Failure to find net.sf.json-lib:json-lib:jar:JDK15:

1
2
3
4
5
6
7
[ERROR] Failed to execute goal on project BI: Could not resolve dependencies for project ******* : Failure to find net.sf.json-lib:json-lib:jar:JDK15:2.4 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

解决方式

修改Pom文件,<classifier>JDK15</classifier> 为值修改为小写<classifier>jdk15</classifier>
则可以正常下载jar包,大小写自测只影响第一次下载,自行决定是否保留修改。

1
2
3
4
5
6
7
8
9
10
<dependency>
<groupId>net.sf.json-lib</groupId>
<artifactId>json-lib</artifactId>
<version>2.4</version>
<classifier>JDK15</classifier>
<exclusions>
<exclusion>
</exclusion>
</exclusions>
</dependency>

Failure to find net.sf.json-lib:json-lib:jar:JDK15:
https://blog.dekun.wang/blog/624fa423.html
作者
Wang Dekun
发布于
2020-12-21 12:16 星期一
更新于
2023-06-01 22:41 星期四
许可协议