博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Pom报错
阅读量:7011 次
发布时间:2019-06-28

本文共 1016 字,大约阅读时间需要 3 分钟。

maven的pom报plugins错误的解决方法

maven的pom报plugins错误的解决方法.
引用
Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.7.1 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
碰到一个类似以上的错误.
原因是maven的plugin并未下载到本地.
如果你查看
引用
~\.m2\repository\org\apache\maven\plugins\maven-surefire-plugin\2.7.1
的话,会发现里面只有一个
maven-surefire-plugin-2.7.1.pom.lastUpdated
的文件.
而并没有maven-surefire-plugin-2.7.1.jar
解决办法:
1.删除所有以lastUpdated结尾的文件
2.右键点击project -> Maven - Update Dependencies(Update Project...)
如果点击更新后发现
~\.m2\repository\org\apache\maven\plugins\maven-surefire-plugin\2.7.1
下还是没有maven-surefire-plugin-2.7.1.jar
去http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.7.1/
下载
maven-surefire-plugin-2.7.1.jar maven-surefire-plugin-2.7.1.jar.sha1 maven-surefire-plugin-2.7.1.pom maven-surefire-plugin-2.7.1.pom.sha1
包再重复步骤2.

转载于:https://www.cnblogs.com/YLQBL/p/6773041.html

你可能感兴趣的文章
centos: 建立git账户
查看>>
Maven|项目命令
查看>>
python filter, map, 和reduce
查看>>
memcached 异常 : 单数据项超过默认值1m
查看>>
mysql创建登录报错ERROR1045(28000)
查看>>
virtualbox(windows环境下)centos虚拟机安装增强工具
查看>>
Fragment(碎片)的静态创建
查看>>
Domino 服务器定时重启
查看>>
安装java及环境配置
查看>>
NFS和SAMBA服务备忘录
查看>>
android 短信发送器
查看>>
Logan:美团点评的开源移动端基础日志库
查看>>
获取Java类中所有Field
查看>>
机器学习需要的数学基础
查看>>
puppet自动化运维之类
查看>>
Python在Linux下的Tab补齐
查看>>
部署搭建 Saltstack
查看>>
多备份亮相安卓开发者大会聚焦全球App数据保护
查看>>
sata盘,SSD盘,fusion-IO卡 对比
查看>>
NFS文件服务器使用简介
查看>>