换了个新的环境,重新导入的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、关于这个本人走了点弯路,以为是阿里云镜像配置有问题,换了几个版本结果都一样例如

 1      <!-- 阿里云镜像 下载配置 -->
 2      <mirror>
 3       <id>alimaven</id>
 4       <mirrorOf>central</mirrorOf>        
 5       <name>aliyun maven</name>
 6       <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
 7     </mirror>
 8 <!--      <mirror>
 9         <id>nexus-aliyun</id>
10         <mirrorOf>central</mirrorOf>
11         <name>Nexus aliyun</name>
12         <url>http://maven.aliyun.com/nexus/content/groups/public</url>
13     </mirror> -->
View Code

相关文章:

  • 2021-09-08
  • 2019-05-25
  • 2022-12-23
  • 2021-12-14
  • 2021-09-17
  • 2021-06-03
  • 2021-05-22
  • 2021-09-30
猜你喜欢
  • 2021-05-07
  • 2022-01-27
  • 2021-08-25
  • 2021-08-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案