换了个新的环境,重新导入的maven工程出现了2个BUG:

1、Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of内容很长,只截取了前面部分

2、Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4 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 has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4 from/to nexus (http://maven.aliyun.com/nexus/content/groups/public): maven.aliyun.com。

3、The project cannot be built until build path errors are resolved

4、Could not calculate build plan: 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. Original error: Could not transfer artifact org.apache.maven.plugins:maven-surefire-plugin:pom:2.7.1 from/to central (http://repo1.maven.org/maven2): Access denied to http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.7.1/maven-surefire-plugin-2.7.1.pom. Error code 407, Proxy Authentication Required

解决方法如下:

1、

(1)将D:\Repositories\.m2\repository\org\apache\maven\plugins文件夹下的文件夹全部删除就可以了

(默认地址在C:\User\.m2\repository\org\apache\maven\plugins目录下的文件夹下)

(2)然后右击项目Maven->Update Project  或者Alt+F5

2、关于这个本人走了点弯路,以为是阿里云镜像配置有问题,换了几个版本结果都一样例如

      <!-- 阿里云镜像 下载配置 -->
<mirror>
<id>alimaven</id>
<mirrorOf>central</mirrorOf>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</mirror>
<!-- <mirror>
<id>nexus-aliyun</id>
<mirrorOf>central</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror> -->

后来查明原因是因为已经存在一个下载失败的版本导致,需找到文件所在目录,手动删除

(1)本人的存在地址为D:\Repositories\.m2\repository\com下的google文件夹,删除。

(2)然后右击项目Maven->Update Project  或者Alt+F5

3、这个问题类似上面的,也是下载的文件不存在或没下完整造成的。

找到错误JAR包存放的地方,手动删除,重新加载依赖下载即可解决。

4、

解决方法如下:

(1)将C:\User\.m2\repository\org\apache\maven\plugins\maven-deploy-plugin目录下的文件夹删除,

(2)然后右击项目Maven->Update Project->Update Dependencies,重点要勾选下面的Force Update of Snapshots/Release。

问题解决。

最新文章

  1. Java总结篇系列:Java泛型
  2. 一个print的简单错误
  3. windows7 下伪静态配置方法
  4. js整理3
  5. USACO Section 2.1: Hamming Codes
  6. 索引 split2
  7. 怎样在 Swift 项目中使用 CocoaPods
  8. windows下使用openssl的一种方法
  9. python多线程(一)
  10. Django_rest framework 框架介绍
  11. linux系统如何发送邮件
  12. Math.ceil()、Math.floor()和Math.round()
  13. Linux内核分析——构造一个简单的Linux系统MenuOS
  14. vue学习之webpack
  15. Win7下怎么设置让远程桌面连接记住密码下次登录不需再输入
  16. 故障排除:无法启动、访问或连接到 Azure 虚拟机上运行的应用程序
  17. 怎么将oracle的sql文件转换成mysql的sql文件
  18. Keepalived 安装与简单配置
  19. newcoder中的基础题
  20. 整合S2SH框架

热门文章

  1. uva 11971 Polygon
  2. json格式的一些常用操作方法
  3. 【leetcode 简单】第三十三题 验证回文串
  4. python 版本zabbix_sender
  5. JWT机制了解
  6. vps建站教程 CentOS6如何安装配置FTP服务器
  7. Codeforces 665E. Beautiful Subarrays (字典树)
  8. AUC画图与计算
  9. js事件、事件委托
  10. JavaSE项目之员工收录系统