pom.xml中出现错误提示Failure to transfer org.jboss.weld.jar ... maven2 was cached in the local repository.

pom.xml中出现 以下错误提示:

Failure to transfer org.jboss.weld:weld-core:jar:1.0.1-SP3 from 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. Original error: Could not transfer artifact 
org.jboss.weld:weld-core:jar:1.0.1-SP3 from/to central (https://repo.maven.apache.org/maven2)
.

解决办法:

第一步:找到本地仓库中关于该jar文件的存储路径

pom.xml中出现错误提示Failure to transfer org.jboss.weld.jar ... maven2 was cached in the local repository._第1张图片

第二步:将该路径下面的文件全部删除掉

pom.xml中出现错误提示Failure to transfer org.jboss.weld.jar ... maven2 was cached in the local repository._第2张图片

第三步:在pom.xml中重新引入该jar的依赖,重新将该jar存储到本地仓库中



    org.jboss.weld
    weld-core
    1.0.1-SP3

 

你可能感兴趣的:(杂文)