ArtifactDescriptorException问题如何解

ArtifactDescriptorException: Failed to read artifact descriptor for clj-stacktrace:clj-stacktrace:jar:0.2.2: ArtifactResolutionException: Failure to transfer clj-stacktrace:clj-stacktrace:pom:0.2.2 from http://repo1.maven.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 clj-stacktrace:clj-stacktrace:pom:0.2.2 from/to central (http://repo1.maven.org/maven2): The operation was cancelled.

 

 

如何解:

 

思路1:将不需要的依赖exclude掉

 

参考: Maven解决类包依赖冲突

 

 

思路2:造成包依赖冲突的原因是因为有些包从国外站点下载不下来,可以使用国内的镜像

 

参考 :  开源中国Maven 库使用帮助 :http://maven.oschina.net/help.html

           

           一网友提供的其它镜像 : http://blog.csdn.net/zuoluoboy/article/details/20007819

思路3: 手工下载包解决

参考 :http://blog.csdn.net/a936676463/article/details/11801469

思路4:换个时间段下载,由于中美时间差,晚上下载的时候反而速度不快,容易超时,因为美国那边正在白天忙着呢。比如可以下班回家的时候更新依赖库,因为那时候美国正是凌晨6点多,还没上班呢 O(∩_∩)O~

ps:本人就是通过思路4解决的。晚上12点到凌晨1点多,自己更新maven库老是time out 失败,第2天下班回家更新很快就更新成功了  ^-^ 

 

 

 

 

 

猜你喜欢

转载自zhouchaofei2010.iteye.com/blog/2248946