阿里云镜像的配置及本地仓库的配置

打开 apache-maven/conf/settings.xml 文件,添加如下的代码

<!-- 在 settings 标签上配置本地仓库的路径 -->
<localRepository>E:\MavenRepository</localRepository>

<!-- 在 mirrors 标签下配置下面的内容 -->
<mirror>
    <id>alimaven</id>
    <name>aliyun maven</name>
    <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
    <mirrorOf>central</mirrorOf>
</mirror>

 

posted @ 2021-01-06 23:41  GetcharZp  阅读(228)  评论(0)    收藏  举报