添加镜像仓库

在conf目录下的settings.xml文件的145行左右

id表示该镜像的id

mirrorOf表示为哪个仓库配置镜像,central为默认的中央仓库的id,也可以使用通配符*,来匹配所有仓库 

<mirrors>
 <mirror>
  <id>nexus-aliyun</id>
  <mirrorOf>*</mirrorOf>
  <name>Nexus aliyun</name>
  <url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
</mirrors>

更改本地仓库位置

在conf目录下的settings.xml文件的50行左右,默认位置为  用户目录/.m2/repository

相关文章:

  • 2022-12-23
  • 2021-06-13
  • 2021-06-18
  • 2021-11-22
  • 2022-01-14
  • 2021-09-12
  • 2021-10-21
  • 2021-11-22
猜你喜欢
  • 2021-08-25
  • 2022-12-23
  • 2021-08-26
  • 2022-12-23
  • 2021-06-18
  • 2022-12-23
  • 2021-07-08
相关资源
相似解决方案