Maven配置文件pom.xml报错 ArtifactTransferException

ArtifactTransferException: Failure to transfer jline:jline:jar:0.9.94 from

ArtifactTransferException: Failure to transfer jline:jline:jar:0.9.94 from http://maven.aliyun.com/nexus/content/groups/public was cached in 
 the local repository, resolution will not be reattempted until the update interval of nexus-aliyun has elapsed or updates are forced. 
 Original error: Could not transfer artifact jline:jline:jar:0.9.94 from/to nexus-aliyun (http://maven.aliyun.com/nexus/content/groups/public): 
 Connection timed out: connect

这句话进行翻译后大概如下:我去这个网址去下载包,但是没下载下来,我不会再去下载,等待你强制更新之类的。

实际的解决办法是:

直接去本地仓库,(C:\Users\Administrator.m2\repository)就是你配置的本机上面的,maven的仓库地址,找到jline:jar对应的目录删除掉(因为包没有下载下来),再次刷新你的项目就可以了,删除之后,这个目录会重新下载到本地仓库里。或者在你的项目上右击,选择maven—>update project就可以了

发布了27 篇原创文章 · 获赞 38 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/a1150499208/article/details/97941129