Skip to main content

[Solved] Since Maven 3.8.1 http repositories are blocked

Many online solutions suggest removing this part from the Maven settings file configured in IDEA:

<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>

However, my configuration points to /Users/asher/workspace/software/apache-maven-3.8.2, and there's no such configuration in /Users/asher/.m2/settings.xml.

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

The actual solution was to remove the configuration from /Users/asher/workspace/software/apache-maven-3.8.2/conf/settings.xml. I suspect IDEA merges the configurations from both settings.xml files.