pom中repositories标签

在pom.xml中配置了repositories后, 但是不生效,还是从settings中配置的仓库下载。

解决方法:

发现,mirrorOf配置的是,故所有的jar都会从此下载,可以修改成,!spring-milestones即可

官网对mirrorOf的配置解释:

  • = everything
    external:* = everything not on the localhost and not file based.
    repo,repo1 = repo or repo1
    *,!repo1 = everything except repo1

参考: https://blog.csdn.net/lovewebeye/article/details/80060410

你可能感兴趣的:(pom中repositories标签)