Could not transfer artifact e-iceblue:spire.pdf:pom:3.11.6 from/to maven-default-http-blocker

本文介绍了在Maven项目中遇到依赖下载错误的问题,具体表现为尝试从HTTP仓库下载时被阻止。解决方案是将仓库URL改为HTTPS。通过修改pom.xml文件中的repositories部分,将com.e-iceblue仓库的URL从http更改为https,从而成功解决报错并确保依赖下载的安全性。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

报错信息:

Could not transfer artifact e-iceblue:spire.pdf:pom:3.11.6 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [com.e-iceblue (http://repo.e-iceblue.cn/repository/maven-public/, default, releases+snapshots)]

参考:

maven项目下载依赖时报错:Could not transfer artifact xxx from/to xxx_QAQTonyQAQ的博客-优快云博客忽略阿里云证书-Xmx768m -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=truehttps://blog.youkuaiyun.com/qq_42210410/article/details/108230340解决:

将url由http改为https
<repositories>
    <repository>
        <id>com.e-iceblue</id>
        <url>https://repo.e-iceblue.cn/repository/maven-public/</url>
    </repository>
</repositories>
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值