Maven not able to resolve dependencies after update to intellij 2021.3
javastruct:pom:0.1 failed to transfer from http://0.0.0.0/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of maven-default-http-blocker has elapsed or updates are forced.
2021.3 IDE version has updated the version of the bundled Maven to 3.8.1. In this version, Maven blocks the access to http repositories by default. Before that, Maven itself has moved from using the http repositories.
So now one needs to explicitly configure Maven to allow http repositories if they are used in the project. E.g. in settings.xml add a mirror to your http repository that allows HTTP:
<mirrors> <mirror> <id>my-repo-mirror</id> <name>My Repo HTTP Mirror</name> <url>http://url-to.my/repo</url> <mirrorOf>my-repo</mirrorOf> </mirror> </mirrors>
本文来自博客园,作者:z_s_s,转载请注明原文链接:https://www.cnblogs.com/zhoushusheng/p/15874108.html
浙公网安备 33010602011771号