Java Maven更新项目和依赖项

Java Maven更新项目和依赖项,java,maven,Java,Maven,在一个至今仍在运行的应用程序中,我在Eclipse中运行命令Maven->Update项目,并开始出现错误 我试图通过删除所有本地存储库并再次运行Maven->updateproject来修复它。但这些是我在Markers视图中仍然看到的错误: Missing artifact org.slf4j:slf4j-api:jar:1.6.6 Missing artifact org.slf4j:slf4j-api:jar:1.6.6 ArtifactTransferException: Fail

在一个至今仍在运行的应用程序中,我在Eclipse中运行命令Maven->Update项目,并开始出现错误

我试图通过删除所有本地存储库并再次运行Maven->updateproject来修复它。但这些是我在Markers视图中仍然看到的错误:

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。 但当您构建时,您应该连接到internet,因为在构建项目时会下载POM中提到的一些外部jar。 另外,请检查所提到的jar是否是maven存储库。
上面的jar与slf4j相关,因此我认为如果您连接到internet,它将得到解决。

也许SL4J jar部分下载到您的maven本地存储库中。如果它存在于本地存储库中,请尝试删除它。如果失败,尝试创建一个名为repository的新目录;我的存储在~/.m2 ubuntu中。出于偏执,我将当前目录重命名为不丢失其中已有的jar。

是否尝试删除该项目。classpath?尝试从本地repo中删除slf4j