方法一:在maven文件夹下的settings.xml中添加(对所有的项目都有效)

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

maven设置镜像地址

maven设置镜像地址

方法二:在maven项目的pom.xml中添加(对当前项目有效)

     <!-- 使用aliyun镜像 -->
     <repositories>
           <repository>
                <id>aliyun</id>
                <name>aliyun</name>
                <url>http://maven.aliyun.com/nexus/content/groups/public</url>
           </repository>
     </repositories>

maven设置镜像地址

相关文章:

  • 2021-11-22
  • 2022-02-01
  • 2022-12-23
  • 2021-11-26
  • 2022-12-23
  • 2021-07-08
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-06
  • 2022-12-23
  • 2022-12-23
  • 2022-02-18
相关资源
相似解决方案