跳到主要内容

Since Maven 3.8.1 http repositories are blocked.

网上的很多说的都是移除IDEA中配置的maven setting文件中的这部分

<mirror>
<id>maven-default-http-blocker</id>
<mirrorOf>external:http:*</mirrorOf>
<name>Pseudo repository to mirror external repositories initially using HTTP.</name>
<url>http://0.0.0.0/</url>
<blocked>true</blocked>
</mirror>

但是我这配置的是/Users/asher/workspace/software/apache-maven-3.8.2,在/Users/asher/.m2/settings.xml中根本没有对应上面的这个配置

https://img.runnable.run/blog/07f253d6-f26b-46ff-b36e-58477a207122.png

然后我实际移除的是/Users/asher/workspace/software/apache-maven-3.8.2/conf/setting.xml中的配置才解决,猜测是IDEA合并了两个setting.xml中的配置?