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>