在最新的IntelliJ IDEA 2023.里进行install的时候提示了这个一场
Downloading from maven-default-http-blocker: http://0.0.0.0/xxxxxx/omp_cbaseinfo_api/1.0-SNAPSHOT/maven-metadata.xml [WARNING] Could not transfer metadata sanshu.cn:omp_cbaseinfo_api:1.0-SNAPSHOT/maven-metadata.xml from/to maven-default-http-blocker (http://0.0.0.0/): transfer failed for http://0.0.0.0/xxxxxx/omp_cbaseinfo_api/1.0-SNAPSHOT/maven-metadata.xml [WARNING] sanshu.cn:omp_cbaseinfo_api:1.0-SNAPSHOT/maven-metadata.xmlfailed to transfer from http://0.0.0.0/ during a previous attempt. This failure was cached in the local repository and resolution will not be reattempted until the update interval of maven-default-http-blocker has elapsed or updates are forced. Original error: Could not transfer metadata sanshu.cn:omp_cbaseinfo_api:1.0-SNAPSHOT/maven-metadata.xml from/to maven-default-http-blocker (http://0.0.0.0/): transfer failed for http://0.0.0.0/xxxxxx/omp_cbaseinfo_api/1.0-SNAPSHOT/maven-metadata.xml Downloading from maven-default-http-blocker: http://0.0.0.0/xxxxxx/omp_cparent/1.0-SNAPSHOT/maven-metadata.xml [WARNING] Could not transfer metadata sanshu.cn:omp_cparent:1.0-SNAPSHOT/maven-metadata.xml from/to maven-default-http-blocker (http://0.0.0.0/): transfer failed for http://0.0.0.0/xxxxxx/omp_cparent/1.0-SNAPSHOT/maven-metadata.xml Downloading from maven-default-http-blocker: http://0.0.0.0/xxxxxx/omp_ccommon_api/1.0-SNAPSHOT/maven-metadata.xml [WARNING] Could not transfer metadata sanshu.cn:omp_ccommon_api:1.0-SNAPSHOT/maven-metadata.xml from/to maven-default-http-blocker (http://0.0.0.0/): transfer failed for http://0.0.0.0/xxxxxx/omp_ccommon_api/1.0-SNAPSHOT/maven-metadata.xml [WARNING] sanshu.cn:omp_ccommon_api:1.0-SNAPSHOT/maven-metadata.xmlfailed to transfer from http://0.0.0.0/ during a previous attempt. This failure was cached in the local repository and resolution will not be reattempted until the update interval of maven-default-http-blocker has elapsed or updates are forced. Original error: Could not transfer metadata sanshu.cn:omp_ccommon_api:1.0-SNAPSHOT/maven-metadata.xml from/to maven-default-http-blocker (http://0.0.0.0/): transfer failed for
解决方案就是:
打开目录:
IDEA软件目录\plugins\maven\lib\maven3\conf\setting.xml
删除这一段:
<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>
即可。