Since Maven 3.8.1 http repositories are blocked.

966 阅读1分钟

Maven自3.8.1开始禁止连接http的库,只支持https,因此降maven版本为3.5,还是报以下错误

com.jc.bdp:jclog-java-sdk:pom:v22.10.28 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. Original error: Could not transfer artifact com.jc.bdp:jclog-java-sdk:pom:v22.10.28 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [company-nexus30 (http://maven.jcinfo.com:8081/repository/maven-public/, default, releases+snapshots)]

Since Maven 3.8.1 http repositories are blocked.

Possible solutions:
- Check that Maven settings.xml does not contain http repositories
- Check that Maven pom files do not contain http repository http://maven.jcinfo.com:8081/repository/maven-public/
- Add a mirror(s) for http://maven.jcinfo.com:8081/repository/maven-public/ that allows http url in the Maven settings.xml
- Downgrade Maven to version 3.8.1 or earlier in settings

原因:idea的maven配置文件和本地配置文件冲突,还需要修改idea的默认maven配置文件 IntelliJ IDEA 2023.3\plugins\maven\lib\maven3\conf