解决问题:Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.6 from/to central

时间:2024-02-01 21:13:48

修改Maven的配置文件setting.xml镜像地址

 1         <mirror> 
 2             <id>alimaven</id> 
 3             <name>aliyun maven</name> 
 4             <url>http://maven.aliyun.com/nexus/content/repositories/central/</url> 
 5             <mirrorOf>central</mirrorOf> 
 6         </mirror> 
 7 
 8         <!-- junit镜像地址 -->
 9         <mirror> 
10             <id>junit</id> 
11             <name>junit Address/</name> 
12             <url>http://jcenter.bintray.com/</url> 
13             <mirrorOf>central</mirrorOf> 
14         </mirror>
15         
16         <mirror> 
17             <id>alimaven</id> 
18             <name>aliyun maven</name> 
19             <url>http://central.maven.org/maven2</url> 
20             <mirrorOf>central</mirrorOf> 
21         </mirror>