Maven 新版本 3.8.1 打包报错 maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories
作者:互联网
Maven 新版本 3.8.1 打包报错 maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories
[ERROR] Failed to execute goal on project ces-component-auth-starter: Could not resolve dependencies for project com.ces:ces-component-auth-starter:jar:1.1-SNAPSHOT: Failed to collect dependencies at com.ces:ces-system-api:jar:1.1-SNAPSHOT: Failed to read artifact descriptor for com.ces:ces-system-api:jar:1.1-SNAPSHOT: Could not transfer artifact com.ces:ces-system-api:pom:1.1-SNAPSHOT from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [nexus-releases (http://nexus3.cloud/repository/maven-public/, default, releases+snapshots)] -> [Help 1]
解决方案
修改 ~/.m2/settings.xml
<mirror>
<id>insecure-repo</id>
<mirrorOf>external:http:*</mirrorOf>
<url>http://www.ebi.ac.uk/intact/maven/nexus/content/repositories/ebi-repo/</url>
<blocked>false</blocked>
</mirror>
相关参考
https://stackoverflow.com/questions/66980047/maven-build-failure-dependencyresolutionexception
http://maven.apache.org/docs/3.8.1/release-notes.html
标签:http,1.1,0.0,maven,ces,报错,com 来源: https://blog.csdn.net/agonie201218/article/details/121976529