可以参考以下这两篇,说的很清楚
https://blog.csdn.net/qq_40933428/article/details/86322657
https://www.cnblogs.com/zhongshengzhen/p/nexus_maven.html