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>