1、复制D:\maven\repository(本地仓库)到D:\sonatype-work\nexus\storage\central(nexus库路径)

2、Central --> update index

3、settings.xml增加仓库地址

 <mirror>
                <id>central</id>
                <mirrorOf>*</mirrorOf> <!-- * 表示让所有仓库使用该镜像--> 
                <name>central</name> 
                <url>http://localhost:8081/nexus/content/repositories/central/</url>

</mirror>

 

相关文章:

  • 2021-11-12
  • 2021-10-21
  • 2022-12-23
  • 2021-05-26
  • 2022-12-23
  • 2021-12-24
猜你喜欢
  • 2022-01-27
  • 2021-12-24
  • 2022-12-23
  • 2021-05-21
  • 2021-05-18
  • 2021-08-02
  • 2021-11-23
相关资源
相似解决方案