Maven遇到Idea中无论如何导入依赖都是调用中央仓库而不是镜像源的问题
时间:2021-04-08 12:54:58
收藏:0
阅读:0
Maven
遇到Idea中无论如何导入依赖都是调用中央仓库而不是镜像源的问题
-
检查IDEA中maven配置是否正确
-
查看是否使用的是自己的setting.xml配置
-
-
检查镜像源配置是否有错
<!-- 阿里云镜像仓库 -->
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>central</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror> -
检查setting.xml配置文件是否有错
-
有时候复制粘贴啊,改动配置啊可能造成一些难以觉察的错误
-
cmd下运行,有错会报,解决即可
mvn help:effective-settings
-
-
评论(0)