二、镜像地址配置本地仓库:意思说maven打包什么的首先放到本地仓库里面去 以后寻找也会首先从本地仓库里面找!
D:/install/apache-maven-3.8.2/maven_repository
marrorof 特别重要 代表要代理仓库类型
我们会从mirros 第一个代理地址寻找 会首次从aliyun maven中找
alimaven central aliyun maven http://maven.aliyun.com/nexus/content/repositories/central/
私服地址配置生效原则
首先位置很重要 第一个是我们私服地址 如果只配置次选项
如果我们删掉本地仓库后只配置私服镜像
如果说service依赖dao 现在我们把本地仓库里面的dao删除
然后执行service install
我们发现会从阿里云上找
发现找不到
三、私服地址生效处理需要配置第一镜像之外,还需要方式一全局配置---->maven安装目录 conf–>setting里面public * Public Repositories http://192.168.0.24:8081/nexus/content/groups/public/ alimaven central aliyun maven http://maven.aliyun.com/nexus/content/repositories/central/ repo1 central Human Readable Name for this Mirror. http://repo1.maven.org/maven2/ repo2 central Human Readable Name for this Mirror. http://repo2.maven.org/maven2/
四、私服地址生效处理需要配置第一镜像之外,还需要方式二局部配置(和三说明二选一)---->modle目录pom中配置dev Public Repositories http://192.168.0.24:8081/nexus/content/groups/public/ true true Public Repositories http://192.168.0.24:8081/nexus/content/groups/public/ true true dev
project目录下即可
public333 Public Repositories333 http://192.168.0.24:8081/nexus/content/groups/public/ public Public Repositories http://192.168.0.24:8081/nexus/content/groups/public/ 五 配置本地镜像地址是为了让本地项目代理地址走这个镜像 ,不配置镜像也没问题。


