maven安装和配置

Windows安装

修改配置文件

编辑$MAVEN3$/conf/setting.xml

修改仓库地址

找到<localRepository>标签,修改为自己希望的仓库路径

修改

找到<mirrors>标签,在标签中间加入:

<mirror>
        <id>alimaven</id>
        <name>aliyun maven</name>
        <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
        <mirrorOf>central</mirrorOf>
        </mirror>
        <mirror>
        <id>alimaven</id>
        <mirrorOf>central</mirrorOf>
        <name>aliyun maven</name>
        <url>http://maven.aliyun.com/nexus/content/repositories/central/</url>
</mirror>
posted @ 2021-04-08 16:46  飞天小烤猪  阅读(24)  评论(0编辑  收藏  举报