zoukankan      html  css  js  c++  java
  • 解决Maven配置了阿里镜像后仍从中央仓库下载依赖的问题

    今天从github上拉了一个项目,我maven配置的是阿里的镜像,maven下载这个项目的依赖却从中央仓库下载。

    新建了一个maven项目,依赖是从阿里镜像的下载的,说明阿里的镜像是正常的。

    解决:在项目的pom.xml中显式设置仓库地址

       <repositories>
            <repository>
                <id>nexus-aliyun</id>
                <name>nexus-aliyun</name>
                <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
                <releases>
                    <enabled>true</enabled>
                </releases>
                <snapshots>
                    <enabled>false</enabled>
                </snapshots>
            </repository>
        </repositories>
  • 相关阅读:
    CSS之链接
    CSS之文本
    CSS之定位
    django 第四天
    django第三天
    django 第二天
    django第一天
    国庆贺礼
    珂朵莉树(ODT)笔记
    20190927
  • 原文地址:https://www.cnblogs.com/chy18883701161/p/12581589.html
Copyright © 2011-2022 走看看