打开maven安装目录下conf文件夹的settings.xml文件

配置本地仓库

<localRepository>D:/maven/repository</localRepository>

  

配置国内的aliyun镜像

在<mirrors>标签中添加

<mirror>
      <id>aliyun</id>
      <mirrorOf>central</mirrorOf>
      <name>aliyun</name>
      <url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>

  

保存

 

打开cmd,输入mvn help:system

maven国内aliyun镜像

 

打开本地仓库,会发现多了很多文件,这些就是从仓库下载的jar包

maven国内aliyun镜像

 

相关文章:

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