gpt4 book ai didi

java - 尝试执行 mvn clean install -DskipTests=true 时出现错误

转载 作者:太空宇宙 更新时间:2023-11-04 09:25:18 25 4
gpt4 key购买 nike

我导入了一个 Spring Boot 项目,一旦执行 mvn clean install -DskipTests=true它给了我一个错误

[ERROR] Failed to execute goal on project collections-commons-util: Could not resolve dependencies for project com.fearson.collections.commons:collections-commons-util:jar:1.0.0: Failure to find net.sf.json-lib:json-lib:jar: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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :collections-commons-util

最佳答案

您能否添加一个代码片段来描述您如何添加 json-lib 依赖项?应该是这样的:

<dependency>
<groupId>net.sf.json-lib</groupId>
<artifactId>json-lib</artifactId>
<version>2.4</version>
</dependency>

关于java - 尝试执行 mvn clean install -DskipTests=true 时出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57782786/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com