为了证明我还活着,写一篇Maven换ali仓库

一 找文件

将maven仓库改为阿里仓库

 

二 加点料

 1 <mirrors>
 2     <!-- mirror
 3      | Specifies a repository mirror site to use instead of a given repository. The repository that
 4      | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
 5      | for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
 6      |
 7     <mirror>
 8       <id>mirrorId</id>
 9       <mirrorOf>repositoryId</mirrorOf>
10       <name>Human Readable Name for this Mirror.</name>
11       <url>http://my.repository.com/repo/path</url>
12     </mirror>
13      -->
14     
15       
16     <mirror>
17         <id>alimaven</id>
18         <mirrorOf>*</mirrorOf>
19         <name>aliyun maven</name>
20         <url>http://maven.aliyun.com/nexus/content/repositories/central/</url>
21     </mirror>
22 
23   
24   </mirrors>
View Code

相关文章:

  • 2021-07-22
  • 2022-12-23
  • 2021-05-09
  • 2022-12-23
  • 2022-02-23
  • 2021-06-05
  • 2022-12-23
猜你喜欢
  • 2021-08-01
  • 2022-12-23
  • 2021-10-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-06
相关资源
相似解决方案