解决 Failure to transfer * from http://repo1.maven.org/maven2 Failure to transfer org.apache.maven:maven-archiver:pom:2.4.1 from http://repo1.maven.org/maven2 was cached in the local repository 可能是由于网络连接不好maven下载jar中断没成功. 解决办法 1.将maven目录下所有以 .lastupdat…
Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4 from http://uk.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of UK has elapsed or updates are forced. Or…
一般情况下可能是文件格式有问题,将正确的文件内容替换掉错误的文件内容,不断地尝试,直到文件不报错,当然也有可能是下面的原因:下面是2.7.1版本的方法,其他类似) 或者是:进入该jar包指示的路径,删除.lastUpdated文件,然后项目右键-->maven-->Update Dependencies 或者: 1.找到maven库目录,进入:~\.m2\repository\org\apache\maven\plugins\maven-surefire-plugin\2.7.1 2.若2.7…
问题产生如下:因为单位使用了过滤,访问Internet时,超过10M的内容就拒绝.因为maven插件在初始时,需要下载Maven的index文件,这个文件比较大,有38M多,下载不成功.所以造成使用Maven添加依赖项时(Add Dependency)时,没有提示项目可用,并且在Console中,输出:Unable to update index for central|http://repo1.maven.org/maven2 . 解决方式如下:1.通过其它方式下载如下两个文件:http://…
不知道什么原因 MyEclipse(eclipse) 中的 maven 插件突然不能用了,修改 pom.xml 无任何反应 控制台报 Unable to update index for central http://repo1.maven.org/maven2/ 错误 搜索到一些文章 cnblogs,iteye,差不多都是出自同一人之手然后到处转载,看着挺复杂的,也没试验. 在stackoverflow上看到有人提出同样的问题,下面有解答,照着操作 竟然成功了 Classic error: U…
使用Maven添加依赖项时(Add Dependency)时,没有提示项目可用,并且在Console中,输出: Unable to update index for central|http://repo1.maven.org/maven2 . 解决方式如下: 1.通过其它方式下载如下两个文件: http://repo1.maven.org/maven2/.index/nexus-maven-repository-index.properties http://repo1.maven.org/m…
详细报错如下 Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.17 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 aliyun ha…
今天在学习maven框架的时候出现Could not transfer artifact org.apache.maven.plugins问题,后面根据很多博客综合总结,终于解决了,现在分享一下我的方法 1.首先保证你的settings配置没问题 这里打开File - settings进行路径配置,选择自己的maven路径进行设置. 2.maven中的settings.xml文件中的镜像资源配置,代码如下 <mirror> <id>alimaven</id> <m…
Index of /maven2/com/github/ ../ 0312birdzhang/ 26-Jun-2015 07:21 - 120011676/ 22-Mar-2016 11:16 - 13h3r/ 07-Oct-2012 15:51 - 2chilled/ 25-Jul-2015 08:51 - 2gis/ 14-Oct-2015 13:24 - 9215095360/ 29-Mar-2016 16:45 - 92tonywills/ 09-Apr-2016 16:53 - ASK…
Failure to transfer com.thoughtworks.xstream:xstream:jar: 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. 解决办法: a. 删除m2\…