gpt4 book ai didi

java - Maven更新项目和依赖项

转载 作者:行者123 更新时间:2023-12-01 04:22:23 30 4
gpt4 key购买 nike

在迄今为止一直有效的应用程序中,我在 Eclipse 中运行命令 Maven->Update project,然后开始出现错误。

我尝试通过删除所有本地存储库并再次运行 Maven->Update 项目来修复它。但这些是我在“标记” View 中仍然看到的错误:

Missing artifact org.slf4j:slf4j-api:jar:1.6.6

Missing artifact org.slf4j:slf4j-api:jar:1.6.6

ArtifactTransferException: Failure to transfer org.slf4j:slf4j-api:jar:1.6.6 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of

ArtifactTransferException: Failure to transfer org.slf4j:slf4j-api:jar:1.6.6 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of

Error occured processing XML 'org/springframework/transaction/interceptor/TransactionInterceptor'. See Error Log for more details

代码没有改变并且之前运行良好。

知道如何修复这些错误吗?

最佳答案

我不确定提到的特定 jar 。但是,当您进行构建时,您应该连接到互联网,因为在构建项目时会下载 POM 中引用的一些外部 jar。另外请检查提到的jar是否是maven存储库。上面的 jar 与 slf4j 相关,所以我认为如果您连接到互联网,它就会得到解决。

关于java - Maven更新项目和依赖项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18786167/

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